{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/kenmiller/Desktop/OutofDistrictDonors.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}12 Mar 2021, 11:53:36

{com}. do "/Users/kenmiller/Dropbox/Donor Responsiveness/House Members and Donor Influence/LSQ R & R/dataverse files/OutofDistrictDonors.do"
{txt}
{com}. iis nameid
{txt}
{com}. 
. *Table 2
. tab withdonorsdist if distN>39

 {txt}voted with {c |}
      donor {c |}
   opinion, {c |}
    against {c |}
   district {c |}
    opinion {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        602       19.33       19.33
{txt}          1 {c |}{res}      2,513       80.67      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      3,115      100.00
{txt}
{com}. tab withdonorspart if partisanN>39

 {txt}voted with {c |}
      donor {c |}
   opinion, {c |}
    against {c |}
   district {c |}
   partisan {c |}
    opinion {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        202       33.67       33.67
{txt}          1 {c |}{res}        398       66.33      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        600      100.00
{txt}
{com}. 
. * Table 3
. * Random Effects [1]
. xtlogit libvote libntdnpty distmedian demrep aff ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -6840.513}  
Iteration 1:{space 3}log likelihood = {res:-3431.1888}  
Iteration 2:{space 3}log likelihood = {res:-3378.0888}  
Iteration 3:{space 3}log likelihood = {res: -3377.779}  
Iteration 4:{space 3}log likelihood = {res: -3377.779}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res} -3377.779
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3327.8254
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3295.6644
{txt}tau = {res} 0.3     {txt}log likelihood = {res}  -3277.91
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-3272.4558
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-3278.9231

{txt}Iteration 0:{space 3}log likelihood = {res:-3272.4706}  
Iteration 1:{space 3}log likelihood = {res:-3248.9911}  
Iteration 2:{space 3}log likelihood = {res:-3248.8055}  
Iteration 3:{space 3}log likelihood = {res:-3248.8054}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       780

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}9{txt}){col 67}={col 70}{res}  1901.24
{txt}Log likelihood  = {res}-3248.8054{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 4.054624{col 26}{space 2} .2509004{col 37}{space 1}   16.16{col 46}{space 3}0.000{col 54}{space 4} 3.562868{col 67}{space 3}  4.54638
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 2.218653{col 26}{space 2} .3343541{col 37}{space 1}    6.64{col 46}{space 3}0.000{col 54}{space 4} 1.563331{col 67}{space 3} 2.873975
{txt}{space 6}demrep {c |}{col 14}{res}{space 2} 2.458072{col 26}{space 2} .1567342{col 37}{space 1}   15.68{col 46}{space 3}0.000{col 54}{space 4} 2.150879{col 67}{space 3} 2.765266
{txt}{space 9}aff {c |}{col 14}{res}{space 2} .2746925{col 26}{space 2} .3527058{col 37}{space 1}    0.78{col 46}{space 3}0.436{col 54}{space 4}-.4165982{col 67}{space 3} .9659833
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-1.596322{col 26}{space 2} .1387442{col 37}{space 1}  -11.51{col 46}{space 3}0.000{col 54}{space 4}-1.868256{col 67}{space 3}-1.324388
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2} -.880843{col 26}{space 2}  .145154{col 37}{space 1}   -6.07{col 46}{space 3}0.000{col 54}{space 4} -1.16534{col 67}{space 3}-.5963465
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.731822{col 26}{space 2} .1422682{col 37}{space 1}  -12.17{col 46}{space 3}0.000{col 54}{space 4}-2.010663{col 67}{space 3}-1.452982
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-2.193867{col 26}{space 2} .1510271{col 37}{space 1}  -14.53{col 46}{space 3}0.000{col 54}{space 4}-2.489875{col 67}{space 3}-1.897859
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2} -.589949{col 26}{space 2} .1729017{col 37}{space 1}   -3.41{col 46}{space 3}0.001{col 54}{space 4}-.9288301{col 67}{space 3}-.2510679
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-3.363154{col 26}{space 2} .2181382{col 37}{space 1}  -15.42{col 46}{space 3}0.000{col 54}{space 4}-3.790697{col 67}{space 3}-2.935611
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2}-.0636925{col 26}{space 2} .1198731{col 54}{space 4}-.2986395{col 67}{space 3} .1712546
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .9686555{col 26}{space 2} .0580579{col 54}{space 4} .8612937{col 67}{space 3}   1.0894
{txt}         rho {c |}{col 14}{res}{space 2} .2219152{col 26}{space 2} .0206984{col 54}{space 4} .1839987{col 67}{space 3} .2651067
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}257.95{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. margins, dydx(libntdnpty) atmeans
{res}
{txt}Conditional marginal effects{col 49}Number of obs{col 67}= {res}     9,921
{txt}{col 1}Model VCE{col 14}: {res}OIM

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(libvote=1), predict(pr)}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:libntdnpty}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:at}:{space 1}{res:{txt:libntdnpty}{space 6}{txt:=} {space 3}.5620487 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:distmedian}{space 6}{txt:=} {space 3}.5905851 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:demrep}{space 10}{txt:=} {space 3}.4946074 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:aff}{space 13}{txt:=} {space 3}.5456138 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum1}{space 11}{txt:=} {space 4}.227598 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum2}{space 11}{txt:=} {space 3}.2211471 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum3}{space 11}{txt:=} {space 3}.1994759 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum4}{space 11}{txt:=} {space 3}.1178309 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum5}{space 11}{txt:=} {space 3}.0779155 {txt:(mean)}}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} .8267204{col 26}{space 2} .0494317{col 37}{space 1}   16.72{col 46}{space 3}0.000{col 54}{space 4} .7298362{col 67}{space 3} .9236047
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(distmedian) atmeans
{res}
{txt}Conditional marginal effects{col 49}Number of obs{col 67}= {res}     9,921
{txt}{col 1}Model VCE{col 14}: {res}OIM

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(libvote=1), predict(pr)}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:distmedian}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:at}:{space 1}{res:{txt:libntdnpty}{space 6}{txt:=} {space 3}.5620487 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:distmedian}{space 6}{txt:=} {space 3}.5905851 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:demrep}{space 10}{txt:=} {space 3}.4946074 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:aff}{space 13}{txt:=} {space 3}.5456138 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum1}{space 11}{txt:=} {space 4}.227598 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum2}{space 11}{txt:=} {space 3}.2211471 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum3}{space 11}{txt:=} {space 3}.1994759 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum4}{space 11}{txt:=} {space 3}.1178309 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum5}{space 11}{txt:=} {space 3}.0779155 {txt:(mean)}}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}distmedian {c |}{col 14}{res}{space 2} .4523737{col 26}{space 2} .0695674{col 37}{space 1}    6.50{col 46}{space 3}0.000{col 54}{space 4} .3160241{col 67}{space 3} .5887233
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. *** One standard deviation change in national donor opinion centered around mean
. margins, at(libntdnpty=(.40375(.3279).73165)) atmeans
{res}
{txt}Adjusted predictions{col 49}Number of obs{col 67}= {res}     9,921
{txt}{col 1}Model VCE{col 14}: {res}OIM

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(libvote=1), predict(pr)}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:libntdnpty}{space 6}{txt:=} {space 5}.40375}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:distmedian}{space 6}{txt:=} {space 3}.5905851 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:demrep}{space 10}{txt:=} {space 3}.4946074 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:aff}{space 13}{txt:=} {space 3}.5456138 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum1}{space 11}{txt:=} {space 4}.227598 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum2}{space 11}{txt:=} {space 3}.2211471 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum3}{space 11}{txt:=} {space 3}.1994759 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum4}{space 11}{txt:=} {space 3}.1178309 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum5}{space 11}{txt:=} {space 3}.0779155 {txt:(mean)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:libntdnpty}{space 6}{txt:=} {space 5}.73165}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:distmedian}{space 6}{txt:=} {space 3}.5905851 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:demrep}{space 10}{txt:=} {space 3}.4946074 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:aff}{space 13}{txt:=} {space 3}.5456138 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum1}{space 11}{txt:=} {space 4}.227598 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum2}{space 11}{txt:=} {space 3}.2211471 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum3}{space 11}{txt:=} {space 3}.1994759 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum4}{space 11}{txt:=} {space 3}.1178309 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum5}{space 11}{txt:=} {space 3}.0779155 {txt:(mean)}}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .4463331{col 26}{space 2} .0135924{col 37}{space 1}   32.84{col 46}{space 3}0.000{col 54}{space 4} .4196926{col 67}{space 3} .4729737
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .7110107{col 26}{space 2} .0113981{col 37}{space 1}   62.38{col 46}{space 3}0.000{col 54}{space 4} .6886708{col 67}{space 3} .7333507
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. * House Donors [2]
. xtlogit libvote libhousedonor distmedian demrep aff ydum1-ydum5 if distN>39, re
{txt}note: ydum1 omitted because of collinearity

Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-5251.9235}  
Iteration 1:{space 3}log likelihood = {res:-2621.5981}  
Iteration 2:{space 3}log likelihood = {res:-2588.7701}  
Iteration 3:{space 3}log likelihood = {res:-2588.6785}  
Iteration 4:{space 3}log likelihood = {res:-2588.6785}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-2588.6785
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-2563.7119
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-2546.3706
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-2536.8594
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-2535.5049
{txt}tau = {res} 0.5     {txt}log likelihood = {res} -2543.237

{txt}Iteration 0:{space 3}log likelihood = {res:-2535.4999}  
Iteration 1:{space 3}log likelihood = {res:-2519.6313}  
Iteration 2:{space 3}log likelihood = {res:-2519.4842}  
Iteration 3:{space 3}log likelihood = {res: -2519.484}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     7,663
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       709

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      10.8
{txt}{col 63}max{col 67}={col 69}{res}        20

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}8{txt}){col 67}={col 70}{res}  1565.36
{txt}Log likelihood  = {res} -2519.484{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      libvote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
libhousedonor {c |}{col 15}{res}{space 2} 4.737353{col 27}{space 2} .2861143{col 38}{space 1}   16.56{col 47}{space 3}0.000{col 55}{space 4}  4.17658{col 68}{space 3} 5.298127
{txt}{space 3}distmedian {c |}{col 15}{res}{space 2}   1.3894{col 27}{space 2} .3846798{col 38}{space 1}    3.61{col 47}{space 3}0.000{col 55}{space 4} .6354411{col 68}{space 3} 2.143358
{txt}{space 7}demrep {c |}{col 15}{res}{space 2} 1.921669{col 27}{space 2} .1730666{col 38}{space 1}   11.10{col 47}{space 3}0.000{col 55}{space 4} 1.582465{col 68}{space 3} 2.260873
{txt}{space 10}aff {c |}{col 15}{res}{space 2}-.4098196{col 27}{space 2} .4398207{col 38}{space 1}   -0.93{col 47}{space 3}0.351{col 55}{space 4}-1.271852{col 68}{space 3} .4522131
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 8}ydum2 {c |}{col 15}{res}{space 2}-1.093371{col 27}{space 2} .1462769{col 38}{space 1}   -7.47{col 47}{space 3}0.000{col 55}{space 4}-1.380068{col 68}{space 3}-.8066733
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-1.631247{col 27}{space 2} .1434951{col 38}{space 1}  -11.37{col 47}{space 3}0.000{col 55}{space 4}-1.912492{col 68}{space 3}-1.350002
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2}-1.984643{col 27}{space 2} .1534883{col 38}{space 1}  -12.93{col 47}{space 3}0.000{col 55}{space 4}-2.285475{col 68}{space 3}-1.683812
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2}-.7609874{col 27}{space 2} .1717914{col 38}{space 1}   -4.43{col 47}{space 3}0.000{col 55}{space 4}-1.097692{col 68}{space 3}-.4242825
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}-2.623336{col 27}{space 2} .2352695{col 38}{space 1}  -11.15{col 47}{space 3}0.000{col 55}{space 4}-3.084456{col 68}{space 3}-2.162216
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}/lnsig2u {c |}{col 15}{res}{space 2} -.140618{col 27}{space 2} .1427531{col 55}{space 4} -.420409{col 68}{space 3}  .139173
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |}{col 15}{res}{space 2} .9321058{col 27}{space 2} .0665305{col 55}{space 4} .8104185{col 68}{space 3} 1.072065
{txt}          rho {c |}{col 15}{res}{space 2} .2089171{col 27}{space 2} .0235929{col 55}{space 4} .1664142{col 68}{space 3} .2589037
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}138.39{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Fixed effects [3]
. xtlogit libvote libntdnpty distmedian demrep aff ydum1-ydum5 if distN>39, fe
{txt}note: multiple positive outcomes within groups encountered.
note: 203 groups (1,921 obs) dropped because of all positive or
      all negative outcomes.
note: demrep omitted because of no within-group variance.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-2018.1044}  
Iteration 1:{space 3}log likelihood = {res:-1982.4914}  
Iteration 2:{space 3}log likelihood = {res:-1982.2447}  
Iteration 3:{space 3}log likelihood = {res:-1982.2447}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     8,000
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       577

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      13.9
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}{col 49}LR chi2({res}8{txt}){col 67}={col 70}{res}  1597.16
{txt}Log likelihood  = {res}-1982.2447{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 4.577556{col 26}{space 2}  .259443{col 37}{space 1}   17.64{col 46}{space 3}0.000{col 54}{space 4} 4.069057{col 67}{space 3} 5.086054
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 1.185025{col 26}{space 2} .3409299{col 37}{space 1}    3.48{col 46}{space 3}0.001{col 54}{space 4} .5168146{col 67}{space 3} 1.853235
{txt}{space 6}demrep {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}aff {c |}{col 14}{res}{space 2} .6858144{col 26}{space 2} .3545883{col 37}{space 1}    1.93{col 46}{space 3}0.053{col 54}{space 4}-.0091659{col 67}{space 3} 1.380795
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-1.629841{col 26}{space 2} .1713574{col 37}{space 1}   -9.51{col 46}{space 3}0.000{col 54}{space 4}-1.965695{col 67}{space 3}-1.293987
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-.7693057{col 26}{space 2}  .173092{col 37}{space 1}   -4.44{col 46}{space 3}0.000{col 54}{space 4} -1.10856{col 67}{space 3}-.4300515
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.616327{col 26}{space 2} .1713084{col 37}{space 1}   -9.44{col 46}{space 3}0.000{col 54}{space 4}-1.952085{col 67}{space 3}-1.280568
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-2.044222{col 26}{space 2} .1725195{col 37}{space 1}  -11.85{col 46}{space 3}0.000{col 54}{space 4}-2.382354{col 67}{space 3} -1.70609
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-.3373803{col 26}{space 2} .1881416{col 37}{space 1}   -1.79{col 46}{space 3}0.073{col 54}{space 4}-.7061311{col 67}{space 3} .0313704
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. * District partisans [4]
. xtlogit libvote libntdnpty distmedian demrep aff distpartisan ydum1-ydum5 if partisanN>39 & abspartisan>.15, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-1022.7208}  
Iteration 1:{space 3}log likelihood = {res:-465.81723}  
Iteration 2:{space 3}log likelihood = {res:-446.29582}  
Iteration 3:{space 3}log likelihood = {res:-445.99362}  
Iteration 4:{space 3}log likelihood = {res:-445.99353}  
Iteration 5:{space 3}log likelihood = {res:-445.99353}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-445.99353
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-445.08445
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-444.61251
{txt}tau = {res} 0.3     {txt}log likelihood = {res} -444.7857

{txt}Iteration 0:{space 3}log likelihood = {res:-444.61251}  
Iteration 1:{space 3}log likelihood = {res:-443.66373}  
Iteration 2:{space 3}log likelihood = {res:-443.10833}  
Iteration 3:{space 3}log likelihood = {res:-443.09991}  
Iteration 4:{space 3}log likelihood = {res:-443.09985}  
Iteration 5:{space 3}log likelihood = {res:-443.09985}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     1,479
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       526

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         1
{txt}{col 63}avg{col 67}={col 69}{res}       2.8
{txt}{col 63}max{col 67}={col 69}{res}        13

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}10{txt}){col 67}={col 70}{res}   210.83
{txt}Log likelihood  = {res}-443.09985{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 2.792485{col 26}{space 2} .9248415{col 37}{space 1}    3.02{col 46}{space 3}0.003{col 54}{space 4} .9798286{col 67}{space 3} 4.605141
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2}  4.90435{col 26}{space 2}  1.48746{col 37}{space 1}    3.30{col 46}{space 3}0.001{col 54}{space 4} 1.988983{col 67}{space 3} 7.819718
{txt}{space 6}demrep {c |}{col 14}{res}{space 2}   3.9115{col 26}{space 2} .4815616{col 37}{space 1}    8.12{col 46}{space 3}0.000{col 54}{space 4} 2.967656{col 67}{space 3} 4.855343
{txt}{space 9}aff {c |}{col 14}{res}{space 2} .4783367{col 26}{space 2} 1.141478{col 37}{space 1}    0.42{col 46}{space 3}0.675{col 54}{space 4}-1.758919{col 67}{space 3} 2.715592
{txt}distpartisan {c |}{col 14}{res}{space 2} 1.255707{col 26}{space 2} 1.298815{col 37}{space 1}    0.97{col 46}{space 3}0.334{col 54}{space 4}-1.289924{col 67}{space 3} 3.801339
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-1.815821{col 26}{space 2} .4483716{col 37}{space 1}   -4.05{col 46}{space 3}0.000{col 54}{space 4}-2.694613{col 67}{space 3}-.9370286
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-1.418613{col 26}{space 2} .5255669{col 37}{space 1}   -2.70{col 46}{space 3}0.007{col 54}{space 4}-2.448705{col 67}{space 3}-.3885207
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-2.568896{col 26}{space 2} .4504027{col 37}{space 1}   -5.70{col 46}{space 3}0.000{col 54}{space 4}-3.451669{col 67}{space 3}-1.686123
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-2.983477{col 26}{space 2} .4731834{col 37}{space 1}   -6.31{col 46}{space 3}0.000{col 54}{space 4}  -3.9109{col 67}{space 3}-2.056055
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-.8967767{col 26}{space 2}  .535148{col 37}{space 1}   -1.68{col 46}{space 3}0.094{col 54}{space 4}-1.945648{col 67}{space 3}  .152094
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} -5.20795{col 26}{space 2} .7850782{col 37}{space 1}   -6.63{col 46}{space 3}0.000{col 54}{space 4}-6.746675{col 67}{space 3}-3.669225
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2} -.316662{col 26}{space 2} .5470161{col 54}{space 4}-1.388794{col 67}{space 3} .7554699
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .8535672{col 26}{space 2} .2334575{col 54}{space 4} .4993755{col 67}{space 3} 1.458976
{txt}         rho {c |}{col 14}{res}{space 2} .1813082{col 26}{space 2} .0811966{col 54}{space 4} .0704602{col 67}{space 3}  .392843
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}5.79{col 56}{txt}Prob >= chibar2 = {res}0.008
{txt}
{com}. * In-District Donors, CCES [5]
. xtlogit libvote libntdnpty libdistdonor distmedian demrep aff if distN>39 & distdonorN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -89.22597}  
Iteration 1:{space 3}log likelihood = {res:-24.887879}  
Iteration 2:{space 3}log likelihood = {res:-22.665054}  
Iteration 3:{space 3}log likelihood = {res:-22.592882}  
Iteration 4:{space 3}log likelihood = {res:-22.592552}  
Iteration 5:{space 3}log likelihood = {res:-22.592552}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-22.592552
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-22.679625

{txt}Iteration 0:{space 3}log likelihood = {res:-22.679625}  
Iteration 1:{space 3}log likelihood = {res:-22.595524}  
Iteration 2:{space 3}log likelihood = {res:-22.592851}  
Iteration 3:{space 3}log likelihood = {res:-22.592564}  
Iteration 4:{space 3}log likelihood = {res:-22.592552}  
Iteration 5:{space 3}log likelihood = {res:-22.592552}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}       129
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}        24

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         3
{txt}{col 63}avg{col 67}={col 69}{res}       5.4
{txt}{col 63}max{col 67}={col 69}{res}        20

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}5{txt}){col 67}={col 70}{res}    33.43
{txt}Log likelihood  = {res}-22.592552{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2}  12.2459{col 26}{space 2} 5.874459{col 37}{space 1}    2.08{col 46}{space 3}0.037{col 54}{space 4} .7321678{col 67}{space 3} 23.75962
{txt}libdistdonor {c |}{col 14}{res}{space 2}-4.284888{col 26}{space 2} 4.793676{col 37}{space 1}   -0.89{col 46}{space 3}0.371{col 54}{space 4}-13.68032{col 67}{space 3} 5.110544
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 1.714709{col 26}{space 2} 5.422048{col 37}{space 1}    0.32{col 46}{space 3}0.752{col 54}{space 4} -8.91231{col 67}{space 3} 12.34173
{txt}{space 6}demrep {c |}{col 14}{res}{space 2} 2.372772{col 26}{space 2} 1.899558{col 37}{space 1}    1.25{col 46}{space 3}0.212{col 54}{space 4}-1.350294{col 67}{space 3} 6.095838
{txt}{space 9}aff {c |}{col 14}{res}{space 2}-.9184899{col 26}{space 2} 3.935402{col 37}{space 1}   -0.23{col 46}{space 3}0.815{col 54}{space 4}-8.631735{col 67}{space 3} 6.794755
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-6.984618{col 26}{space 2} 2.506324{col 37}{space 1}   -2.79{col 46}{space 3}0.005{col 54}{space 4}-11.89692{col 67}{space 3}-2.072312
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2}-13.94892{col 26}{space 2} 837.6024{col 54}{space 4}-1655.619{col 67}{space 3} 1627.722
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .0009355{col 26}{space 2} .3917775{col 54}{space 4}        0{col 67}{space 3}        .
{txt}         rho {c |}{col 14}{res}{space 2} 2.66e-07{col 26}{space 2} .0002228{col 54}{space 4}        0{col 67}{space 3}        .
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}1.3e-06{col 56}{txt}Prob >= chibar2 = {res}0.500
{txt}
{com}. * In-district CF Scores [6]
. xtlogit libvote libntdnpty libdistdonorcf distmedian demrep aff ydum1-ydum5 if distN>39, re
{txt}note: ydum5 omitted because of collinearity

Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-5803.6563}  
Iteration 1:{space 3}log likelihood = {res:-2859.6972}  
Iteration 2:{space 3}log likelihood = {res:-2795.5277}  
Iteration 3:{space 3}log likelihood = {res:-2794.5728}  
Iteration 4:{space 3}log likelihood = {res:-2794.5726}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-2794.5726
{txt}tau = {res} 0.1     {txt}log likelihood = {res}  -2770.31
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-2757.1424
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-2752.5955
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-2755.7186

{txt}Iteration 0:{space 3}log likelihood = {res:-2752.5956}  
Iteration 1:{space 3}log likelihood = {res:-2746.6732}  
Iteration 2:{space 3}log likelihood = {res:-2746.6631}  
Iteration 3:{space 3}log likelihood = {res:-2746.6631}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     8,373
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       718

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         1
{txt}{col 63}avg{col 67}={col 69}{res}      11.7
{txt}{col 63}max{col 67}={col 69}{res}        22

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}9{txt}){col 67}={col 70}{res}  1754.72
{txt}Log likelihood  = {res}-2746.6631{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       libvote{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      z{col 48}   P>|z|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}libntdnpty {c |}{col 16}{res}{space 2} 3.845103{col 28}{space 2} .2740151{col 39}{space 1}   14.03{col 48}{space 3}0.000{col 56}{space 4} 3.308043{col 69}{space 3} 4.382163
{txt}libdistdonorcf {c |}{col 16}{res}{space 2} 1.696994{col 28}{space 2} .1425214{col 39}{space 1}   11.91{col 48}{space 3}0.000{col 56}{space 4} 1.417658{col 69}{space 3} 1.976331
{txt}{space 4}distmedian {c |}{col 16}{res}{space 2} 2.064167{col 28}{space 2} .3362673{col 39}{space 1}    6.14{col 48}{space 3}0.000{col 56}{space 4} 1.405095{col 69}{space 3} 2.723238
{txt}{space 8}demrep {c |}{col 16}{res}{space 2}-.0435235{col 28}{space 2} .2651204{col 39}{space 1}   -0.16{col 48}{space 3}0.870{col 56}{space 4}  -.56315{col 69}{space 3} .4761029
{txt}{space 11}aff {c |}{col 16}{res}{space 2} .4500389{col 28}{space 2} .3564448{col 39}{space 1}    1.26{col 48}{space 3}0.207{col 56}{space 4}-.2485801{col 69}{space 3} 1.148658
{txt}{space 9}ydum1 {c |}{col 16}{res}{space 2}-.8387339{col 28}{space 2} .1514507{col 39}{space 1}   -5.54{col 48}{space 3}0.000{col 56}{space 4}-1.135572{col 69}{space 3}-.5418959
{txt}{space 9}ydum2 {c |}{col 16}{res}{space 2}-.1526158{col 28}{space 2} .1390565{col 39}{space 1}   -1.10{col 48}{space 3}0.272{col 56}{space 4}-.4251615{col 69}{space 3}   .11993
{txt}{space 9}ydum3 {c |}{col 16}{res}{space 2}-1.013677{col 28}{space 2} .1669007{col 39}{space 1}   -6.07{col 48}{space 3}0.000{col 56}{space 4}-1.340796{col 69}{space 3}-.6865573
{txt}{space 9}ydum4 {c |}{col 16}{res}{space 2}-1.480389{col 28}{space 2} .1627863{col 39}{space 1}   -9.09{col 48}{space 3}0.000{col 56}{space 4}-1.799444{col 69}{space 3}-1.161333
{txt}{space 9}ydum5 {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{space 9}_cons {c |}{col 16}{res}{space 2}-2.560644{col 28}{space 2} .2104911{col 39}{space 1}  -12.17{col 48}{space 3}0.000{col 56}{space 4}-2.973199{col 69}{space 3}-2.148089
{txt}{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}/lnsig2u {c |}{col 16}{res}{space 2}-.5964196{col 28}{space 2} .1673842{col 56}{space 4}-.9244866{col 69}{space 3}-.2683526
{txt}{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
       sigma_u {c |}{col 16}{res}{space 2} .7421456{col 28}{space 2} .0621117{col 56}{space 4} .6298691{col 69}{space 3} .8744359
{txt}           rho {c |}{col 16}{res}{space 2} .1434081{col 28}{space 2} .0205618{col 56}{space 4} .1076153{col 69}{space 3} .1885897
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}95.82{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. 
. * Table 4 
. * Electoral favorability (Cook PVI) [1]
. xtlogit libvote cookfavlibntdn libntdn cookfav cookfavdist distmedian aff demrep ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -6840.513}  
Iteration 1:{space 3}log likelihood = {res: -3263.599}  
Iteration 2:{space 3}log likelihood = {res:-3149.2818}  
Iteration 3:{space 3}log likelihood = {res:-3146.4599}  
Iteration 4:{space 3}log likelihood = {res:-3146.4568}  
Iteration 5:{space 3}log likelihood = {res:-3146.4568}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3146.4568
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3126.5392
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3118.7482
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3120.8025

{txt}Iteration 0:{space 3}log likelihood = {res:-3118.7483}  
Iteration 1:{space 3}log likelihood = {res:-3112.8128}  
Iteration 2:{space 3}log likelihood = {res:-3112.6345}  
Iteration 3:{space 3}log likelihood = {res:-3112.6344}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       780

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}12{txt}){col 67}={col 70}{res}  2170.20
{txt}Log likelihood  = {res}-3112.6344{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       libvote{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      z{col 48}   P>|z|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cookfavlibntdn {c |}{col 16}{res}{space 2} .2547921{col 28}{space 2} .0165187{col 39}{space 1}   15.42{col 48}{space 3}0.000{col 56}{space 4} .2224161{col 69}{space 3}  .287168
{txt}{space 4}libntdnpty {c |}{col 16}{res}{space 2} 2.650564{col 28}{space 2} .2505491{col 39}{space 1}   10.58{col 48}{space 3}0.000{col 56}{space 4} 2.159496{col 69}{space 3} 3.141631
{txt}{space 7}cookfav {c |}{col 16}{res}{space 2} .0082099{col 28}{space 2} .0118822{col 39}{space 1}    0.69{col 48}{space 3}0.490{col 56}{space 4}-.0150788{col 69}{space 3} .0314986
{txt}{space 3}cookfavdist {c |}{col 16}{res}{space 2}-.2407011{col 28}{space 2} .0219804{col 39}{space 1}  -10.95{col 48}{space 3}0.000{col 56}{space 4}-.2837819{col 69}{space 3}-.1976204
{txt}{space 4}distmedian {c |}{col 16}{res}{space 2}  2.77767{col 28}{space 2} .3504767{col 39}{space 1}    7.93{col 48}{space 3}0.000{col 56}{space 4} 2.090749{col 69}{space 3} 3.464592
{txt}{space 11}aff {c |}{col 16}{res}{space 2} .6013606{col 28}{space 2} .3547244{col 39}{space 1}    1.70{col 48}{space 3}0.090{col 56}{space 4}-.0938865{col 69}{space 3} 1.296608
{txt}{space 8}demrep {c |}{col 16}{res}{space 2} 2.194368{col 28}{space 2} .1422982{col 39}{space 1}   15.42{col 48}{space 3}0.000{col 56}{space 4} 1.915468{col 69}{space 3} 2.473267
{txt}{space 9}ydum1 {c |}{col 16}{res}{space 2}-1.302372{col 28}{space 2} .1368875{col 39}{space 1}   -9.51{col 48}{space 3}0.000{col 56}{space 4}-1.570667{col 69}{space 3}-1.034077
{txt}{space 9}ydum2 {c |}{col 16}{res}{space 2}-.5541617{col 28}{space 2} .1436067{col 39}{space 1}   -3.86{col 48}{space 3}0.000{col 56}{space 4}-.8356257{col 69}{space 3}-.2726977
{txt}{space 9}ydum3 {c |}{col 16}{res}{space 2}-1.237878{col 28}{space 2} .1433911{col 39}{space 1}   -8.63{col 48}{space 3}0.000{col 56}{space 4} -1.51892{col 69}{space 3}-.9568367
{txt}{space 9}ydum4 {c |}{col 16}{res}{space 2}-1.875457{col 28}{space 2} .1494554{col 39}{space 1}  -12.55{col 48}{space 3}0.000{col 56}{space 4}-2.168384{col 69}{space 3} -1.58253
{txt}{space 9}ydum5 {c |}{col 16}{res}{space 2}-.4148659{col 28}{space 2} .1737116{col 39}{space 1}   -2.39{col 48}{space 3}0.017{col 56}{space 4}-.7553343{col 69}{space 3}-.0743975
{txt}{space 9}_cons {c |}{col 16}{res}{space 2}-3.219615{col 28}{space 2} .2306826{col 39}{space 1}  -13.96{col 48}{space 3}0.000{col 56}{space 4}-3.671745{col 69}{space 3}-2.767486
{txt}{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}/lnsig2u {c |}{col 16}{res}{space 2}-.9465183{col 28}{space 2} .1803541{col 56}{space 4}-1.300006{col 69}{space 3}-.5930308
{txt}{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
       sigma_u {c |}{col 16}{res}{space 2} .6229686{col 28}{space 2} .0561775{col 56}{space 4} .5220443{col 69}{space 3} .7434042
{txt}           rho {c |}{col 16}{res}{space 2} .1055178{col 28}{space 2} .0170225{col 56}{space 4} .0765019{col 69}{space 3} .1438249
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}67.64{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. *margins, dydx(cookfavlibntdn) atmeans
. *margins, dydx(cookfavdist) atmeans
. xtlogit libvote c.cookfav##c.libntdnpty c.cookfav##c.distmedian aff demrep ydum1-ydum5 if distN>39, re
{txt}note: cookfav omitted because of collinearity

Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -6840.513}  
Iteration 1:{space 3}log likelihood = {res: -3263.599}  
Iteration 2:{space 3}log likelihood = {res:-3149.2818}  
Iteration 3:{space 3}log likelihood = {res:-3146.4599}  
Iteration 4:{space 3}log likelihood = {res:-3146.4568}  
Iteration 5:{space 3}log likelihood = {res:-3146.4568}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3146.4568
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3126.5392
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3118.7482
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3120.8025

{txt}Iteration 0:{space 3}log likelihood = {res:-3118.7483}  
Iteration 1:{space 3}log likelihood = {res:-3112.8128}  
Iteration 2:{space 3}log likelihood = {res:-3112.6345}  
Iteration 3:{space 3}log likelihood = {res:-3112.6344}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       780

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}12{txt}){col 67}={col 70}{res}  2170.20
{txt}Log likelihood  = {res}-3112.6344{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}               libvote{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      z{col 56}   P>|z|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}cookfav {c |}{col 24}{res}{space 2} .0082099{col 36}{space 2} .0118822{col 47}{space 1}    0.69{col 56}{space 3}0.490{col 64}{space 4}-.0150788{col 77}{space 3} .0314986
{txt}{space 12}libntdnpty {c |}{col 24}{res}{space 2} 2.650564{col 36}{space 2} .2505491{col 47}{space 1}   10.58{col 56}{space 3}0.000{col 64}{space 4} 2.159496{col 77}{space 3} 3.141631
{txt}{space 22} {c |}
c.cookfav#c.libntdnpty {c |}{col 24}{res}{space 2} .2547921{col 36}{space 2} .0165187{col 47}{space 1}   15.42{col 56}{space 3}0.000{col 64}{space 4} .2224161{col 77}{space 3}  .287168
{txt}{space 22} {c |}
{space 15}cookfav {c |}{col 24}{res}{space 2}        0{col 36}{txt}  (omitted)
{space 12}distmedian {c |}{col 24}{res}{space 2}  2.77767{col 36}{space 2} .3504767{col 47}{space 1}    7.93{col 56}{space 3}0.000{col 64}{space 4} 2.090749{col 77}{space 3} 3.464592
{txt}{space 22} {c |}
c.cookfav#c.distmedian {c |}{col 24}{res}{space 2}-.2407011{col 36}{space 2} .0219804{col 47}{space 1}  -10.95{col 56}{space 3}0.000{col 64}{space 4}-.2837819{col 77}{space 3}-.1976204
{txt}{space 22} {c |}
{space 19}aff {c |}{col 24}{res}{space 2} .6013606{col 36}{space 2} .3547244{col 47}{space 1}    1.70{col 56}{space 3}0.090{col 64}{space 4}-.0938865{col 77}{space 3} 1.296608
{txt}{space 16}demrep {c |}{col 24}{res}{space 2} 2.194368{col 36}{space 2} .1422982{col 47}{space 1}   15.42{col 56}{space 3}0.000{col 64}{space 4} 1.915468{col 77}{space 3} 2.473267
{txt}{space 17}ydum1 {c |}{col 24}{res}{space 2}-1.302372{col 36}{space 2} .1368875{col 47}{space 1}   -9.51{col 56}{space 3}0.000{col 64}{space 4}-1.570667{col 77}{space 3}-1.034077
{txt}{space 17}ydum2 {c |}{col 24}{res}{space 2}-.5541617{col 36}{space 2} .1436067{col 47}{space 1}   -3.86{col 56}{space 3}0.000{col 64}{space 4}-.8356257{col 77}{space 3}-.2726977
{txt}{space 17}ydum3 {c |}{col 24}{res}{space 2}-1.237878{col 36}{space 2} .1433911{col 47}{space 1}   -8.63{col 56}{space 3}0.000{col 64}{space 4} -1.51892{col 77}{space 3}-.9568367
{txt}{space 17}ydum4 {c |}{col 24}{res}{space 2}-1.875457{col 36}{space 2} .1494554{col 47}{space 1}  -12.55{col 56}{space 3}0.000{col 64}{space 4}-2.168384{col 77}{space 3} -1.58253
{txt}{space 17}ydum5 {c |}{col 24}{res}{space 2}-.4148659{col 36}{space 2} .1737116{col 47}{space 1}   -2.39{col 56}{space 3}0.017{col 64}{space 4}-.7553343{col 77}{space 3}-.0743975
{txt}{space 17}_cons {c |}{col 24}{res}{space 2}-3.219615{col 36}{space 2} .2306826{col 47}{space 1}  -13.96{col 56}{space 3}0.000{col 64}{space 4}-3.671745{col 77}{space 3}-2.767486
{txt}{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}/lnsig2u {c |}{col 24}{res}{space 2}-.9465183{col 36}{space 2} .1803541{col 64}{space 4}-1.300006{col 77}{space 3}-.5930308
{txt}{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               sigma_u {c |}{col 24}{res}{space 2} .6229686{col 36}{space 2} .0561775{col 64}{space 4} .5220443{col 77}{space 3} .7434042
{txt}                   rho {c |}{col 24}{res}{space 2} .1055178{col 36}{space 2} .0170225{col 64}{space 4} .0765019{col 77}{space 3} .1438249
{txt}{hline 23}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}67.64{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. margins, dydx(libntdnpty) at(cookfav=(0 20)) atmeans
{res}
{txt}Conditional marginal effects{col 49}Number of obs{col 67}= {res}     9,921
{txt}{col 1}Model VCE{col 14}: {res}OIM

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(libvote=1), predict(pr)}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:libntdnpty}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:cookfav}{space 9}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:libntdnpty}{space 6}{txt:=} {space 3}.5620487 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:distmedian}{space 6}{txt:=} {space 3}.5905851 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:aff}{space 13}{txt:=} {space 3}.5456138 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:demrep}{space 10}{txt:=} {space 3}.4946074 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum1}{space 11}{txt:=} {space 4}.227598 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum2}{space 11}{txt:=} {space 3}.2211471 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum3}{space 11}{txt:=} {space 3}.1994759 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum4}{space 11}{txt:=} {space 3}.1178309 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum5}{space 11}{txt:=} {space 3}.0779155 {txt:(mean)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:cookfav}{space 9}{txt:=} {space 9}20}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:libntdnpty}{space 6}{txt:=} {space 3}.5620487 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:distmedian}{space 6}{txt:=} {space 3}.5905851 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:aff}{space 13}{txt:=} {space 3}.5456138 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:demrep}{space 10}{txt:=} {space 3}.4946074 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum1}{space 11}{txt:=} {space 4}.227598 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum2}{space 11}{txt:=} {space 3}.2211471 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum3}{space 11}{txt:=} {space 3}.1994759 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum4}{space 11}{txt:=} {space 3}.1178309 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum5}{space 11}{txt:=} {space 3}.0779155 {txt:(mean)}}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}libntdnpty   {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .5890272{col 26}{space 2} .0554403{col 37}{space 1}   10.62{col 46}{space 3}0.000{col 54}{space 4} .4803662{col 67}{space 3} .6976882
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 1.660832{col 26}{space 2} .0811759{col 37}{space 1}   20.46{col 46}{space 3}0.000{col 54}{space 4}  1.50173{col 67}{space 3} 1.819933
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. * Redistricting, district safety (Cook PVI) [2]
. xtlogit libvote cookfavlibntdn libntdnpty cookfav cookfavdist distmedian aff ydum1-ydum5 if (year==2010 | year==2012) & distN>39, fe
{txt}note: ydum1 omitted because of collinearity
note: ydum2 omitted because of collinearity
note: ydum4 omitted because of collinearity
note: ydum5 omitted because of collinearity
note: multiple positive outcomes within groups encountered.
note: 352 groups (2,126 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-224.12725}  
Iteration 1:{space 3}log likelihood = {res:-216.73682}  
Iteration 2:{space 3}log likelihood = {res:-216.41853}  
Iteration 3:{space 3}log likelihood = {res:-216.41799}  
Iteration 4:{space 3}log likelihood = {res:-216.41799}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     1,022
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       152

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         3
{txt}{col 63}avg{col 67}={col 69}{res}       6.7
{txt}{col 63}max{col 67}={col 69}{res}         8

{txt}{col 49}LR chi2({res}7{txt}){col 67}={col 70}{res}   202.28
{txt}Log likelihood  = {res}-216.41799{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       libvote{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      z{col 48}   P>|z|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cookfavlibntdn {c |}{col 16}{res}{space 2} .3518694{col 28}{space 2} .0772068{col 39}{space 1}    4.56{col 48}{space 3}0.000{col 56}{space 4} .2005469{col 69}{space 3} .5031918
{txt}{space 4}libntdnpty {c |}{col 16}{res}{space 2} 3.737059{col 28}{space 2} .8212486{col 39}{space 1}    4.55{col 48}{space 3}0.000{col 56}{space 4} 2.127442{col 69}{space 3} 5.346677
{txt}{space 7}cookfav {c |}{col 16}{res}{space 2}-.0755598{col 28}{space 2} .0664492{col 39}{space 1}   -1.14{col 48}{space 3}0.255{col 56}{space 4}-.2057979{col 69}{space 3} .0546783
{txt}{space 3}cookfavdist {c |}{col 16}{res}{space 2}-.2842631{col 28}{space 2} .0821559{col 39}{space 1}   -3.46{col 48}{space 3}0.001{col 56}{space 4}-.4452857{col 69}{space 3}-.1232405
{txt}{space 4}distmedian {c |}{col 16}{res}{space 2} 2.028519{col 28}{space 2} 1.166289{col 39}{space 1}    1.74{col 48}{space 3}0.082{col 56}{space 4}-.2573648{col 69}{space 3} 4.314403
{txt}{space 11}aff {c |}{col 16}{res}{space 2}-1.609939{col 28}{space 2}  1.28086{col 39}{space 1}   -1.26{col 48}{space 3}0.209{col 56}{space 4}-4.120378{col 69}{space 3} .9004996
{txt}{space 9}ydum1 {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{space 9}ydum2 {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{space 9}ydum3 {c |}{col 16}{res}{space 2} .9030596{col 28}{space 2} .2684746{col 39}{space 1}    3.36{col 48}{space 3}0.001{col 56}{space 4}  .376859{col 69}{space 3}  1.42926
{txt}{space 9}ydum4 {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{space 9}ydum5 {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. * Table 5
. * pct out-district
. * Random effects logit [1]
. xtlogit libvote libntdnpty lagood100libntdn lagood100 distmedian aff demrep ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-6620.4964}  
Iteration 1:{space 3}log likelihood = {res:-3306.0336}  
Iteration 2:{space 3}log likelihood = {res:-3244.1369}  
Iteration 3:{space 3}log likelihood = {res:-3243.5036}  
Iteration 4:{space 3}log likelihood = {res:-3243.5033}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3243.5033
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3198.0886
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3169.7057
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3154.9381
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-3151.8241
{txt}tau = {res} 0.5     {txt}log likelihood = {res} -3160.099

{txt}Iteration 0:{space 3}log likelihood = {res:-3151.8259}  
Iteration 1:{space 3}log likelihood = {res:-3131.6757}  
Iteration 2:{space 3}log likelihood = {res:-3131.4794}  
Iteration 3:{space 3}log likelihood = {res:-3131.4792}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,608
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       765

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.6
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}11{txt}){col 67}={col 70}{res}  1875.31
{txt}Log likelihood  = {res}-3131.4792{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         libvote{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}libntdnpty {c |}{col 18}{res}{space 2} 2.615494{col 30}{space 2} .5187879{col 41}{space 1}    5.04{col 50}{space 3}0.000{col 58}{space 4} 1.598689{col 71}{space 3}   3.6323
{txt}lagood100libntdn {c |}{col 18}{res}{space 2} 2.226289{col 30}{space 2} .7168112{col 41}{space 1}    3.11{col 50}{space 3}0.002{col 58}{space 4} .8213644{col 71}{space 3} 3.631213
{txt}{space 7}lagood100 {c |}{col 18}{res}{space 2}-.5893265{col 30}{space 2} .4475742{col 41}{space 1}   -1.32{col 50}{space 3}0.188{col 58}{space 4}-1.466556{col 71}{space 3} .2879029
{txt}{space 6}distmedian {c |}{col 18}{res}{space 2} 2.416727{col 30}{space 2} .3410345{col 41}{space 1}    7.09{col 50}{space 3}0.000{col 58}{space 4} 1.748312{col 71}{space 3} 3.085143
{txt}{space 13}aff {c |}{col 18}{res}{space 2} .2020538{col 30}{space 2} .3601924{col 41}{space 1}    0.56{col 50}{space 3}0.575{col 58}{space 4}-.5039102{col 71}{space 3} .9080179
{txt}{space 10}demrep {c |}{col 18}{res}{space 2} 2.382002{col 30}{space 2} .1601548{col 41}{space 1}   14.87{col 50}{space 3}0.000{col 58}{space 4} 2.068104{col 71}{space 3}   2.6959
{txt}{space 11}ydum1 {c |}{col 18}{res}{space 2}-1.599984{col 30}{space 2}  .139963{col 41}{space 1}  -11.43{col 50}{space 3}0.000{col 58}{space 4}-1.874306{col 71}{space 3}-1.325662
{txt}{space 11}ydum2 {c |}{col 18}{res}{space 2}-.8310464{col 30}{space 2} .1464891{col 41}{space 1}   -5.67{col 50}{space 3}0.000{col 58}{space 4} -1.11816{col 71}{space 3}-.5439331
{txt}{space 11}ydum3 {c |}{col 18}{res}{space 2}-1.764142{col 30}{space 2} .1454109{col 41}{space 1}  -12.13{col 50}{space 3}0.000{col 58}{space 4}-2.049142{col 71}{space 3}-1.479141
{txt}{space 11}ydum4 {c |}{col 18}{res}{space 2}-2.185521{col 30}{space 2} .1528022{col 41}{space 1}  -14.30{col 50}{space 3}0.000{col 58}{space 4}-2.485007{col 71}{space 3}-1.886034
{txt}{space 11}ydum5 {c |}{col 18}{res}{space 2}-.5772544{col 30}{space 2} .1738679{col 41}{space 1}   -3.32{col 50}{space 3}0.001{col 58}{space 4}-.9180293{col 71}{space 3}-.2364796
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}-3.030892{col 30}{space 2} .3485544{col 41}{space 1}   -8.70{col 50}{space 3}0.000{col 58}{space 4}-3.714046{col 71}{space 3}-2.347738
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}/lnsig2u {c |}{col 18}{res}{space 2}-.1506028{col 30}{space 2}  .125655{col 58}{space 4} -.396882{col 71}{space 3} .0956765
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
         sigma_u {c |}{col 18}{res}{space 2} .9274639{col 30}{space 2} .0582702{col 58}{space 4} .8200081{col 71}{space 3} 1.049001
{txt}             rho {c |}{col 18}{res}{space 2} .2072717{col 30}{space 2} .0206464{col 58}{space 4} .1697036{col 71}{space 3} .2506458
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}224.05{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. *margins, dydx(lagood100libntdn) atmeans
. xtlogit libvote c.lagood100##c.libntdnpty distmedian aff demrep ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-6620.4964}  
Iteration 1:{space 3}log likelihood = {res:-3306.0336}  
Iteration 2:{space 3}log likelihood = {res:-3244.1369}  
Iteration 3:{space 3}log likelihood = {res:-3243.5036}  
Iteration 4:{space 3}log likelihood = {res:-3243.5033}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3243.5033
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3198.0886
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3169.7057
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3154.9381
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-3151.8241
{txt}tau = {res} 0.5     {txt}log likelihood = {res} -3160.099

{txt}Iteration 0:{space 3}log likelihood = {res:-3151.8259}  
Iteration 1:{space 3}log likelihood = {res:-3131.6757}  
Iteration 2:{space 3}log likelihood = {res:-3131.4794}  
Iteration 3:{space 3}log likelihood = {res:-3131.4792}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,608
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       765

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.6
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}11{txt}){col 67}={col 70}{res}  1875.31
{txt}Log likelihood  = {res}-3131.4792{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                 libvote{col 26}{c |}      Coef.{col 38}   Std. Err.{col 50}      z{col 58}   P>|z|{col 66}     [95% Con{col 79}f. Interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}lagood100 {c |}{col 26}{res}{space 2}-.5893264{col 38}{space 2} .4475742{col 49}{space 1}   -1.32{col 58}{space 3}0.188{col 66}{space 4}-1.466556{col 79}{space 3} .2879029
{txt}{space 14}libntdnpty {c |}{col 26}{res}{space 2} 2.615494{col 38}{space 2} .5187879{col 49}{space 1}    5.04{col 58}{space 3}0.000{col 66}{space 4} 1.598689{col 79}{space 3}   3.6323
{txt}{space 24} {c |}
c.lagood100#c.libntdnpty {c |}{col 26}{res}{space 2} 2.226288{col 38}{space 2} .7168112{col 49}{space 1}    3.11{col 58}{space 3}0.002{col 66}{space 4} .8213643{col 79}{space 3} 3.631213
{txt}{space 24} {c |}
{space 14}distmedian {c |}{col 26}{res}{space 2} 2.416727{col 38}{space 2} .3410345{col 49}{space 1}    7.09{col 58}{space 3}0.000{col 66}{space 4} 1.748312{col 79}{space 3} 3.085143
{txt}{space 21}aff {c |}{col 26}{res}{space 2} .2020538{col 38}{space 2} .3601924{col 49}{space 1}    0.56{col 58}{space 3}0.575{col 66}{space 4}-.5039102{col 79}{space 3} .9080179
{txt}{space 18}demrep {c |}{col 26}{res}{space 2} 2.382002{col 38}{space 2} .1601548{col 49}{space 1}   14.87{col 58}{space 3}0.000{col 66}{space 4} 2.068104{col 79}{space 3}   2.6959
{txt}{space 19}ydum1 {c |}{col 26}{res}{space 2}-1.599984{col 38}{space 2}  .139963{col 49}{space 1}  -11.43{col 58}{space 3}0.000{col 66}{space 4}-1.874306{col 79}{space 3}-1.325662
{txt}{space 19}ydum2 {c |}{col 26}{res}{space 2}-.8310464{col 38}{space 2} .1464891{col 49}{space 1}   -5.67{col 58}{space 3}0.000{col 66}{space 4} -1.11816{col 79}{space 3}-.5439331
{txt}{space 19}ydum3 {c |}{col 26}{res}{space 2}-1.764142{col 38}{space 2} .1454109{col 49}{space 1}  -12.13{col 58}{space 3}0.000{col 66}{space 4}-2.049142{col 79}{space 3}-1.479141
{txt}{space 19}ydum4 {c |}{col 26}{res}{space 2}-2.185521{col 38}{space 2} .1528022{col 49}{space 1}  -14.30{col 58}{space 3}0.000{col 66}{space 4}-2.485007{col 79}{space 3}-1.886034
{txt}{space 19}ydum5 {c |}{col 26}{res}{space 2}-.5772544{col 38}{space 2} .1738679{col 49}{space 1}   -3.32{col 58}{space 3}0.001{col 66}{space 4}-.9180293{col 79}{space 3}-.2364796
{txt}{space 19}_cons {c |}{col 26}{res}{space 2}-3.030892{col 38}{space 2} .3485544{col 49}{space 1}   -8.70{col 58}{space 3}0.000{col 66}{space 4}-3.714046{col 79}{space 3}-2.347738
{txt}{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 16}/lnsig2u {c |}{col 26}{res}{space 2}-.1506028{col 38}{space 2}  .125655{col 66}{space 4} -.396882{col 79}{space 3} .0956765
{txt}{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                 sigma_u {c |}{col 26}{res}{space 2} .9274639{col 38}{space 2} .0582702{col 66}{space 4} .8200081{col 79}{space 3} 1.049001
{txt}                     rho {c |}{col 26}{res}{space 2} .2072717{col 38}{space 2} .0206464{col 66}{space 4} .1697036{col 79}{space 3} .2506458
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}224.05{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. margins, dydx(libntdnpty) at(lagood100=(.1 .9)) atmeans
{res}
{txt}Conditional marginal effects{col 49}Number of obs{col 67}= {res}     9,608
{txt}{col 1}Model VCE{col 14}: {res}OIM

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(libvote=1), predict(pr)}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:libntdnpty}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:lagood100}{space 7}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:libntdnpty}{space 6}{txt:=} {space 3}.5626449 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:distmedian}{space 6}{txt:=} {space 3}.5910912 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:aff}{space 13}{txt:=} {space 3}.5459986 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:demrep}{space 10}{txt:=} {space 3}.4950042 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum1}{space 11}{txt:=} {space 3}.2268943 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum2}{space 11}{txt:=} {space 3}.2188801 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum3}{space 11}{txt:=} {space 3}.1980641 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum4}{space 11}{txt:=} {space 3}.1174022 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum5}{space 11}{txt:=} {space 3}.0787885 {txt:(mean)}}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:lagood100}{space 7}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:libntdnpty}{space 6}{txt:=} {space 3}.5626449 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:distmedian}{space 6}{txt:=} {space 3}.5910912 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:aff}{space 13}{txt:=} {space 3}.5459986 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:demrep}{space 10}{txt:=} {space 3}.4950042 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum1}{space 11}{txt:=} {space 3}.2268943 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum2}{space 11}{txt:=} {space 3}.2188801 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum3}{space 11}{txt:=} {space 3}.1980641 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum4}{space 11}{txt:=} {space 3}.1174022 {txt:(mean)}}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ydum5}{space 11}{txt:=} {space 3}.0787885 {txt:(mean)}}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}libntdnpty   {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} .5991844{col 26}{space 2} .0949795{col 37}{space 1}    6.31{col 46}{space 3}0.000{col 54}{space 4}  .413028{col 67}{space 3} .7853409
{txt}{space 10}2  {c |}{col 14}{res}{space 2} .9281422{col 26}{space 2} .0642255{col 37}{space 1}   14.45{col 46}{space 3}0.000{col 54}{space 4} .8022626{col 67}{space 3} 1.054022
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. * 2SLS [2]
. * show 2nd-stage in main text and 1st-stage equations in appendix
. xtivreg  libvote libntdnpty distmedian aff demrep ydum1-ydum5 (lagood100libntdn lagood100 = distmedian aff ydum1-ydum5 libntdnpty lagchair lagchairlibntdn demrep) if distN>39, first 
{res}
{txt}First-stage G2SLS regression
{col 50}Number of obs{col 67}={res}{col 69}     9,608
{col 50}{txt}Wald chi({res}11{txt}){col 67}={res}{col 71}   38260
{col 50}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}lagood100libn~n{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}libntdnpty {c |}{col 17}{res}{space 2} .6225528{col 29}{space 2} .0071136{col 40}{space 1}   87.52{col 49}{space 3}0.000{col 57}{space 4} .6086105{col 70}{space 3} .6364951
{txt}{space 5}distmedian {c |}{col 17}{res}{space 2}-.0035185{col 29}{space 2} .0096431{col 40}{space 1}   -0.36{col 49}{space 3}0.715{col 57}{space 4}-.0224186{col 70}{space 3} .0153815
{txt}{space 12}aff {c |}{col 17}{res}{space 2} .0121829{col 29}{space 2} .0100881{col 40}{space 1}    1.21{col 49}{space 3}0.227{col 57}{space 4}-.0075894{col 70}{space 3} .0319552
{txt}{space 9}demrep {c |}{col 17}{res}{space 2} .0881203{col 29}{space 2} .0045381{col 40}{space 1}   19.42{col 49}{space 3}0.000{col 57}{space 4} .0792257{col 70}{space 3} .0970148
{txt}{space 10}ydum1 {c |}{col 17}{res}{space 2} .0037634{col 29}{space 2} .0036293{col 40}{space 1}    1.04{col 49}{space 3}0.300{col 57}{space 4}-.0033499{col 70}{space 3} .0108766
{txt}{space 10}ydum2 {c |}{col 17}{res}{space 2} .0018444{col 29}{space 2} .0038215{col 40}{space 1}    0.48{col 49}{space 3}0.629{col 57}{space 4}-.0056455{col 70}{space 3} .0093343
{txt}{space 10}ydum3 {c |}{col 17}{res}{space 2} .0175623{col 29}{space 2} .0035335{col 40}{space 1}    4.97{col 49}{space 3}0.000{col 57}{space 4} .0106368{col 70}{space 3} .0244877
{txt}{space 10}ydum4 {c |}{col 17}{res}{space 2} .0017397{col 29}{space 2} .0040034{col 40}{space 1}    0.43{col 49}{space 3}0.664{col 57}{space 4}-.0061069{col 70}{space 3} .0095863
{txt}{space 10}ydum5 {c |}{col 17}{res}{space 2} .0007379{col 29}{space 2} .0047266{col 40}{space 1}    0.16{col 49}{space 3}0.876{col 57}{space 4}-.0085261{col 70}{space 3} .0100018
{txt}{space 7}lagchair {c |}{col 17}{res}{space 2} .0038471{col 29}{space 2} .0099349{col 40}{space 1}    0.39{col 49}{space 3}0.699{col 57}{space 4}-.0156249{col 70}{space 3} .0233191
{txt}lagchairlibntdn {c |}{col 17}{res}{space 2} .0944117{col 29}{space 2} .0154828{col 40}{space 1}    6.10{col 49}{space 3}0.000{col 57}{space 4}  .064066{col 70}{space 3} .1247574
{txt}{space 10}_cons {c |}{col 17}{res}{space 2}-.0266841{col 29}{space 2} .0057622{col 40}{space 1}   -4.63{col 49}{space 3}0.000{col 57}{space 4}-.0379778{col 70}{space 3}-.0153904
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}First-stage G2SLS regression
{col 50}Number of obs{col 67}={res}{col 69}     9,608
{col 50}{txt}Wald chi({res}11{txt}){col 67}={res}{col 71}    1257
{col 50}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      lagood100{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}libntdnpty {c |}{col 17}{res}{space 2}-.0051263{col 29}{space 2} .0106864{col 40}{space 1}   -0.48{col 49}{space 3}0.631{col 57}{space 4}-.0260714{col 70}{space 3} .0158187
{txt}{space 5}distmedian {c |}{col 17}{res}{space 2} .0143102{col 29}{space 2} .0144864{col 40}{space 1}    0.99{col 49}{space 3}0.323{col 57}{space 4}-.0140827{col 70}{space 3}  .042703
{txt}{space 12}aff {c |}{col 17}{res}{space 2}-.0089028{col 29}{space 2}  .015155{col 40}{space 1}   -0.59{col 49}{space 3}0.557{col 57}{space 4}-.0386061{col 70}{space 3} .0208005
{txt}{space 9}demrep {c |}{col 17}{res}{space 2} .1424571{col 29}{space 2} .0068175{col 40}{space 1}   20.90{col 49}{space 3}0.000{col 57}{space 4} .1290951{col 70}{space 3}  .155819
{txt}{space 10}ydum1 {c |}{col 17}{res}{space 2}-.0069638{col 29}{space 2} .0054521{col 40}{space 1}   -1.28{col 49}{space 3}0.202{col 57}{space 4}-.0176497{col 70}{space 3} .0037222
{txt}{space 10}ydum2 {c |}{col 17}{res}{space 2}-.0057094{col 29}{space 2} .0057409{col 40}{space 1}   -0.99{col 49}{space 3}0.320{col 57}{space 4}-.0169612{col 70}{space 3} .0055425
{txt}{space 10}ydum3 {c |}{col 17}{res}{space 2} .0005787{col 29}{space 2} .0053082{col 40}{space 1}    0.11{col 49}{space 3}0.913{col 57}{space 4}-.0098252{col 70}{space 3} .0109826
{txt}{space 10}ydum4 {c |}{col 17}{res}{space 2}-.0042165{col 29}{space 2} .0060142{col 40}{space 1}   -0.70{col 49}{space 3}0.483{col 57}{space 4}-.0160042{col 70}{space 3} .0075712
{txt}{space 10}ydum5 {c |}{col 17}{res}{space 2}-.0045009{col 29}{space 2} .0071006{col 40}{space 1}   -0.63{col 49}{space 3}0.526{col 57}{space 4}-.0184178{col 70}{space 3}  .009416
{txt}{space 7}lagchair {c |}{col 17}{res}{space 2} .0955522{col 29}{space 2} .0149248{col 40}{space 1}    6.40{col 49}{space 3}0.000{col 57}{space 4} .0663002{col 70}{space 3} .1248043
{txt}lagchairlibntdn {c |}{col 17}{res}{space 2}  .001877{col 29}{space 2} .0232593{col 40}{space 1}    0.08{col 49}{space 3}0.936{col 57}{space 4}-.0437102{col 70}{space 3} .0474643
{txt}{space 10}_cons {c |}{col 17}{res}{space 2} .5698613{col 29}{space 2} .0086563{col 40}{space 1}   65.83{col 49}{space 3}0.000{col 57}{space 4} .5528952{col 70}{space 3} .5868274
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}G2SLS random-effects IV regression{col 49}Number of obs{col 67}={col 69}{res}     9,608
{txt}Group variable: {res}nameid{txt}{col 49}Number of groups{col 67}={col 69}{res}       765

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.1742{col 63}{txt}min{col 67}={col 69}{res}         2
{txt}     between = {res}0.7523{col 63}{txt}avg{col 67}={col 69}{res}      12.6
{txt}     overall = {res}0.5204{col 63}{txt}max{col 67}={col 69}{res}        26

{txt}{col 49}Wald chi2({res}11{txt}){col 67}={col 70}{res}  7050.49
{txt}corr(u_i, X){col 20}= {res}0{txt} (assumed){col 49}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         libvote{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
lagood100libntdn {c |}{col 18}{res}{space 2} 1.138925{col 30}{space 2} .5767765{col 41}{space 1}    1.97{col 50}{space 3}0.048{col 58}{space 4} .0084642{col 71}{space 3} 2.269386
{txt}{space 7}lagood100 {c |}{col 18}{res}{space 2}-.0013845{col 30}{space 2} .3813416{col 41}{space 1}   -0.00{col 50}{space 3}0.997{col 58}{space 4}-.7488004{col 71}{space 3} .7460314
{txt}{space 6}libntdnpty {c |}{col 18}{res}{space 2}-.0882382{col 30}{space 2} .3637755{col 41}{space 1}   -0.24{col 50}{space 3}0.808{col 58}{space 4}-.8012251{col 71}{space 3} .6247486
{txt}{space 6}distmedian {c |}{col 18}{res}{space 2} .2119469{col 30}{space 2} .0341054{col 41}{space 1}    6.21{col 50}{space 3}0.000{col 58}{space 4} .1451015{col 71}{space 3} .2787922
{txt}{space 13}aff {c |}{col 18}{res}{space 2}-.0926297{col 30}{space 2} .0363535{col 41}{space 1}   -2.55{col 50}{space 3}0.011{col 58}{space 4}-.1638812{col 71}{space 3}-.0213782
{txt}{space 10}demrep {c |}{col 18}{res}{space 2}  .230515{col 30}{space 2} .0312663{col 41}{space 1}    7.37{col 50}{space 3}0.000{col 58}{space 4} .1692341{col 71}{space 3} .2917958
{txt}{space 11}ydum1 {c |}{col 18}{res}{space 2}-.1996449{col 30}{space 2} .0133969{col 41}{space 1}  -14.90{col 50}{space 3}0.000{col 58}{space 4}-.2259023{col 71}{space 3}-.1733875
{txt}{space 11}ydum2 {c |}{col 18}{res}{space 2}-.1277056{col 30}{space 2} .0136142{col 41}{space 1}   -9.38{col 50}{space 3}0.000{col 58}{space 4}-.1543889{col 71}{space 3}-.1010223
{txt}{space 11}ydum3 {c |}{col 18}{res}{space 2}-.2233527{col 30}{space 2} .0166143{col 41}{space 1}  -13.44{col 50}{space 3}0.000{col 58}{space 4}-.2559162{col 71}{space 3}-.1907892
{txt}{space 11}ydum4 {c |}{col 18}{res}{space 2}-.2674128{col 30}{space 2} .0142899{col 41}{space 1}  -18.71{col 50}{space 3}0.000{col 58}{space 4}-.2954204{col 71}{space 3}-.2394051
{txt}{space 11}ydum5 {c |}{col 18}{res}{space 2}-.1079167{col 30}{space 2} .0165612{col 41}{space 1}   -6.52{col 50}{space 3}0.000{col 58}{space 4} -.140376{col 71}{space 3}-.0754574
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .1322785{col 30}{space 2}  .233426{col 41}{space 1}    0.57{col 50}{space 3}0.571{col 58}{space 4} -.325228{col 71}{space 3} .5897851
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
         sigma_u {c |} {res} .08725096
         {txt}sigma_e {c |} {res} .32352369
             {txt}rho {c |} {res} .06780112{txt}   (fraction of variance due to u_i)
{hline 17}{c BT}{hline 64}
{p 0 16 30}Instrumented:{space 3}lagood100libntdn lagood100{p_end}
{p 0 16 30}Instruments:{space 4}libntdnpty distmedian aff demrep ydum1 ydum2 ydum3 ydum4 ydum5 lagchair lagchairlibntdn{p_end}
{hline 82}

{com}. *Hausman test 
. *Just for reporting Hausman test --in Table 5 in column above N
. xtivreg  libvote libntdnpty distmedian aff demrep ydum1-ydum5 (lagoodlibntdn lagood100 = distmedian aff ydum1-ydum5 libntdnpty lagchair lagchairlibntdn demrep) if distN>39, first
{res}
{txt}First-stage G2SLS regression
{col 50}Number of obs{col 67}={res}{col 69}     9,608
{col 50}{txt}Wald chi({res}11{txt}){col 67}={res}{col 71}   38260
{col 50}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  lagoodlibntdn{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}libntdnpty {c |}{col 17}{res}{space 2} 62.25528{col 29}{space 2} .7113555{col 40}{space 1}   87.52{col 49}{space 3}0.000{col 57}{space 4} 60.86105{col 70}{space 3} 63.64951
{txt}{space 5}distmedian {c |}{col 17}{res}{space 2}-.3518528{col 29}{space 2} .9643054{col 40}{space 1}   -0.36{col 49}{space 3}0.715{col 57}{space 4}-2.241857{col 70}{space 3} 1.538151
{txt}{space 12}aff {c |}{col 17}{res}{space 2} 1.218289{col 29}{space 2} 1.008811{col 40}{space 1}    1.21{col 49}{space 3}0.227{col 57}{space 4}-.7589442{col 70}{space 3} 3.195523
{txt}{space 9}demrep {c |}{col 17}{res}{space 2} 8.812026{col 29}{space 2} .4538121{col 40}{space 1}   19.42{col 49}{space 3}0.000{col 57}{space 4} 7.922571{col 70}{space 3} 9.701482
{txt}{space 10}ydum1 {c |}{col 17}{res}{space 2} .3763354{col 29}{space 2} .3629262{col 40}{space 1}    1.04{col 49}{space 3}0.300{col 57}{space 4}-.3349868{col 70}{space 3} 1.087658
{txt}{space 10}ydum2 {c |}{col 17}{res}{space 2} .1844403{col 29}{space 2} .3821468{col 40}{space 1}    0.48{col 49}{space 3}0.629{col 57}{space 4}-.5645536{col 70}{space 3} .9334342
{txt}{space 10}ydum3 {c |}{col 17}{res}{space 2} 1.756227{col 29}{space 2} .3533468{col 40}{space 1}    4.97{col 49}{space 3}0.000{col 57}{space 4}  1.06368{col 70}{space 3} 2.448774
{txt}{space 10}ydum4 {c |}{col 17}{res}{space 2} .1739738{col 29}{space 2} .4003444{col 40}{space 1}    0.43{col 49}{space 3}0.664{col 57}{space 4}-.6106868{col 70}{space 3} .9586344
{txt}{space 10}ydum5 {c |}{col 17}{res}{space 2} .0737866{col 29}{space 2} .4726576{col 40}{space 1}    0.16{col 49}{space 3}0.876{col 57}{space 4}-.8526053{col 70}{space 3} 1.000179
{txt}{space 7}lagchair {c |}{col 17}{res}{space 2} .3847113{col 29}{space 2} .9934865{col 40}{space 1}    0.39{col 49}{space 3}0.699{col 57}{space 4}-1.562486{col 70}{space 3} 2.331909
{txt}lagchairlibntdn {c |}{col 17}{res}{space 2}  9.44117{col 29}{space 2} 1.548278{col 40}{space 1}    6.10{col 49}{space 3}0.000{col 57}{space 4}   6.4066{col 70}{space 3} 12.47574
{txt}{space 10}_cons {c |}{col 17}{res}{space 2}-2.668411{col 29}{space 2} .5762179{col 40}{space 1}   -4.63{col 49}{space 3}0.000{col 57}{space 4}-3.797777{col 70}{space 3}-1.539044
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}First-stage G2SLS regression
{col 50}Number of obs{col 67}={res}{col 69}     9,608
{col 50}{txt}Wald chi({res}11{txt}){col 67}={res}{col 71}    1257
{col 50}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      lagood100{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}libntdnpty {c |}{col 17}{res}{space 2}-.0051263{col 29}{space 2} .0106864{col 40}{space 1}   -0.48{col 49}{space 3}0.631{col 57}{space 4}-.0260714{col 70}{space 3} .0158187
{txt}{space 5}distmedian {c |}{col 17}{res}{space 2} .0143102{col 29}{space 2} .0144864{col 40}{space 1}    0.99{col 49}{space 3}0.323{col 57}{space 4}-.0140827{col 70}{space 3}  .042703
{txt}{space 12}aff {c |}{col 17}{res}{space 2}-.0089028{col 29}{space 2}  .015155{col 40}{space 1}   -0.59{col 49}{space 3}0.557{col 57}{space 4}-.0386061{col 70}{space 3} .0208005
{txt}{space 9}demrep {c |}{col 17}{res}{space 2} .1424571{col 29}{space 2} .0068175{col 40}{space 1}   20.90{col 49}{space 3}0.000{col 57}{space 4} .1290951{col 70}{space 3}  .155819
{txt}{space 10}ydum1 {c |}{col 17}{res}{space 2}-.0069638{col 29}{space 2} .0054521{col 40}{space 1}   -1.28{col 49}{space 3}0.202{col 57}{space 4}-.0176497{col 70}{space 3} .0037222
{txt}{space 10}ydum2 {c |}{col 17}{res}{space 2}-.0057094{col 29}{space 2} .0057409{col 40}{space 1}   -0.99{col 49}{space 3}0.320{col 57}{space 4}-.0169612{col 70}{space 3} .0055425
{txt}{space 10}ydum3 {c |}{col 17}{res}{space 2} .0005787{col 29}{space 2} .0053082{col 40}{space 1}    0.11{col 49}{space 3}0.913{col 57}{space 4}-.0098252{col 70}{space 3} .0109826
{txt}{space 10}ydum4 {c |}{col 17}{res}{space 2}-.0042165{col 29}{space 2} .0060142{col 40}{space 1}   -0.70{col 49}{space 3}0.483{col 57}{space 4}-.0160042{col 70}{space 3} .0075712
{txt}{space 10}ydum5 {c |}{col 17}{res}{space 2}-.0045009{col 29}{space 2} .0071006{col 40}{space 1}   -0.63{col 49}{space 3}0.526{col 57}{space 4}-.0184178{col 70}{space 3}  .009416
{txt}{space 7}lagchair {c |}{col 17}{res}{space 2} .0955522{col 29}{space 2} .0149248{col 40}{space 1}    6.40{col 49}{space 3}0.000{col 57}{space 4} .0663002{col 70}{space 3} .1248043
{txt}lagchairlibntdn {c |}{col 17}{res}{space 2}  .001877{col 29}{space 2} .0232593{col 40}{space 1}    0.08{col 49}{space 3}0.936{col 57}{space 4}-.0437102{col 70}{space 3} .0474643
{txt}{space 10}_cons {c |}{col 17}{res}{space 2} .5698613{col 29}{space 2} .0086563{col 40}{space 1}   65.83{col 49}{space 3}0.000{col 57}{space 4} .5528952{col 70}{space 3} .5868274
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}G2SLS random-effects IV regression{col 49}Number of obs{col 67}={col 69}{res}     9,608
{txt}Group variable: {res}nameid{txt}{col 49}Number of groups{col 67}={col 69}{res}       765

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.1742{col 63}{txt}min{col 67}={col 69}{res}         2
{txt}     between = {res}0.7523{col 63}{txt}avg{col 67}={col 69}{res}      12.6
{txt}     overall = {res}0.5204{col 63}{txt}max{col 67}={col 69}{res}        26

{txt}{col 49}Wald chi2({res}11{txt}){col 67}={col 70}{res}  7050.49
{txt}corr(u_i, X){col 20}= {res}0{txt} (assumed){col 49}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      libvote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
lagoodlibntdn {c |}{col 15}{res}{space 2} .0113893{col 27}{space 2} .0057678{col 38}{space 1}    1.97{col 47}{space 3}0.048{col 55}{space 4} .0000846{col 68}{space 3} .0226939
{txt}{space 4}lagood100 {c |}{col 15}{res}{space 2}-.0013845{col 27}{space 2} .3813416{col 38}{space 1}   -0.00{col 47}{space 3}0.997{col 55}{space 4}-.7488003{col 68}{space 3} .7460314
{txt}{space 3}libntdnpty {c |}{col 15}{res}{space 2}-.0882382{col 27}{space 2} .3637755{col 38}{space 1}   -0.24{col 47}{space 3}0.808{col 55}{space 4}-.8012251{col 68}{space 3} .6247486
{txt}{space 3}distmedian {c |}{col 15}{res}{space 2} .2119469{col 27}{space 2} .0341054{col 38}{space 1}    6.21{col 47}{space 3}0.000{col 55}{space 4} .1451015{col 68}{space 3} .2787922
{txt}{space 10}aff {c |}{col 15}{res}{space 2}-.0926297{col 27}{space 2} .0363535{col 38}{space 1}   -2.55{col 47}{space 3}0.011{col 55}{space 4}-.1638812{col 68}{space 3}-.0213782
{txt}{space 7}demrep {c |}{col 15}{res}{space 2}  .230515{col 27}{space 2} .0312663{col 38}{space 1}    7.37{col 47}{space 3}0.000{col 55}{space 4} .1692341{col 68}{space 3} .2917958
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}-.1996449{col 27}{space 2} .0133969{col 38}{space 1}  -14.90{col 47}{space 3}0.000{col 55}{space 4}-.2259023{col 68}{space 3}-.1733875
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2}-.1277056{col 27}{space 2} .0136142{col 38}{space 1}   -9.38{col 47}{space 3}0.000{col 55}{space 4}-.1543889{col 68}{space 3}-.1010223
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-.2233527{col 27}{space 2} .0166143{col 38}{space 1}  -13.44{col 47}{space 3}0.000{col 55}{space 4}-.2559162{col 68}{space 3}-.1907892
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2}-.2674128{col 27}{space 2} .0142899{col 38}{space 1}  -18.71{col 47}{space 3}0.000{col 55}{space 4}-.2954204{col 68}{space 3}-.2394051
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2}-.1079167{col 27}{space 2} .0165612{col 38}{space 1}   -6.52{col 47}{space 3}0.000{col 55}{space 4} -.140376{col 68}{space 3}-.0754574
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} .1322785{col 27}{space 2}  .233426{col 38}{space 1}    0.57{col 47}{space 3}0.571{col 55}{space 4} -.325228{col 68}{space 3} .5897851
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |} {res} .08725096
      {txt}sigma_e {c |} {res} .32352369
          {txt}rho {c |} {res} .06780112{txt}   (fraction of variance due to u_i)
{hline 14}{c BT}{hline 64}
{p 0 16 33}Instrumented:{space 3}lagoodlibntdn lagood100{p_end}
{p 0 16 33}Instruments:{space 4}libntdnpty distmedian aff demrep ydum1 ydum2 ydum3 ydum4 ydum5 lagchair lagchairlibntdn{p_end}
{hline 79}

{com}. estimates store iv
{txt}
{com}.  xtreg  libvote distmedian aff demrep ydum1-ydum5 libntdnpty lagood100 lagoodlibntdn if distN>39, re
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     9,608
{txt}Group variable: {res}nameid                          {txt}Number of groups  = {res}       765

{txt}R-sq:                                           Obs per group:
     within  = {res}0.2063                                         {txt}min = {res}         2
{txt}     between = {res}0.8282                                         {txt}avg = {res}      12.6
{txt}     overall = {res}0.5802                                         {txt}max = {res}        26

                                                {txt}Wald chi2({res}11{txt})     =  {res}  7329.87
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      libvote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}distmedian {c |}{col 15}{res}{space 2} .2003013{col 27}{space 2} .0319358{col 38}{space 1}    6.27{col 47}{space 3}0.000{col 55}{space 4} .1377082{col 68}{space 3} .2628944
{txt}{space 10}aff {c |}{col 15}{res}{space 2}-.0778381{col 27}{space 2} .0333335{col 38}{space 1}   -2.34{col 47}{space 3}0.020{col 55}{space 4}-.1431704{col 68}{space 3}-.0125057
{txt}{space 7}demrep {c |}{col 15}{res}{space 2} .3176579{col 27}{space 2} .0155479{col 38}{space 1}   20.43{col 47}{space 3}0.000{col 55}{space 4} .2871845{col 68}{space 3} .3481313
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}-.1966302{col 27}{space 2} .0120758{col 38}{space 1}  -16.28{col 47}{space 3}0.000{col 55}{space 4}-.2202984{col 68}{space 3}-.1729621
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2}-.1254984{col 27}{space 2} .0126929{col 38}{space 1}   -9.89{col 47}{space 3}0.000{col 55}{space 4} -.150376{col 68}{space 3}-.1006207
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-.2005017{col 27}{space 2} .0117268{col 38}{space 1}  -17.10{col 47}{space 3}0.000{col 55}{space 4}-.2234857{col 68}{space 3}-.1775176
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2}-.2628246{col 27}{space 2} .0132383{col 38}{space 1}  -19.85{col 47}{space 3}0.000{col 55}{space 4}-.2887711{col 68}{space 3}-.2368781
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2}-.1064893{col 27}{space 2} .0156157{col 38}{space 1}   -6.82{col 47}{space 3}0.000{col 55}{space 4}-.1370955{col 68}{space 3}-.0758831
{txt}{space 3}libntdnpty {c |}{col 15}{res}{space 2} .6028588{col 27}{space 2} .0449435{col 38}{space 1}   13.41{col 47}{space 3}0.000{col 55}{space 4} .5147711{col 68}{space 3} .6909464
{txt}{space 4}lagood100 {c |}{col 15}{res}{space 2}   .02519{col 27}{space 2} .0407441{col 38}{space 1}    0.62{col 47}{space 3}0.536{col 55}{space 4} -.054667{col 68}{space 3} .1050471
{txt}lagoodlibntdn {c |}{col 15}{res}{space 2} .0004653{col 27}{space 2} .0006094{col 38}{space 1}    0.76{col 47}{space 3}0.445{col 55}{space 4}-.0007291{col 68}{space 3} .0016597
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} .0894779{col 27}{space 2} .0312412{col 38}{space 1}    2.86{col 47}{space 3}0.004{col 55}{space 4} .0282462{col 68}{space 3} .1507097
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |} {res} .09095363
      {txt}sigma_e {c |} {res} .30881697
          {txt}rho {c |} {res}  .0798198{txt}   (fraction of variance due to u_i)
{hline 14}{c BT}{hline 64}

{com}. hausman iv

{txt}{p 0 8}Note: the rank of the differenced variance matrix ({result:10}) does not equal the number of coefficients being tested ({result:11}); be sure this is what you expect, or there may be problems computing the test.  Examine the output of your estimators for anything unexpected and possibly consider scaling your variables so that the coefficients are on a similar scale.

{col 18}{hline 4} Coefficients {hline 4}
{col 14}{c |}{col 21}(b){col 34}(B){col 49}(b-B){col 59}sqrt(diag(V_b-V_B))
{col 14}{c |}{col 17}     iv     {col 30}     .      {col 46}Difference{col 66}S.E.
{hline 13}{c +}{hline 64}
lagoodlibn~n {c |}{res}{col 18} .0113893{col 31} .0004653{col 47} .0109239{col 63} .0057355
{txt}{space 3}lagood100 {c |}{res}{col 18}-.0013845{col 31}   .02519{col 47}-.0265745{col 63} .3791587
{txt}{space 2}libntdnpty {c |}{res}{col 18}-.0882382{col 31} .6028588{col 47} -.691097{col 63} .3609885
{txt}{space 2}distmedian {c |}{res}{col 18} .2119469{col 31} .2003013{col 47} .0116455{col 63}   .01197
{txt}{space 9}aff {c |}{res}{col 18}-.0926297{col 31}-.0778381{col 47}-.0147917{col 63} .0145071
{txt}{space 6}demrep {c |}{res}{col 18}  .230515{col 31} .3176579{col 47}-.0871429{col 63} .0271264
{txt}{space 7}ydum1 {c |}{res}{col 18}-.1996449{col 31}-.1966302{col 47}-.0030147{col 63} .0058009
{txt}{space 7}ydum2 {c |}{res}{col 18}-.1277056{col 31}-.1254984{col 47}-.0022073{col 63}  .004923
{txt}{space 7}ydum3 {c |}{res}{col 18}-.2233527{col 31}-.2005017{col 47} -.022851{col 63} .0117694
{txt}{space 7}ydum4 {c |}{res}{col 18}-.2674128{col 31}-.2628246{col 47}-.0045882{col 63} .0053804
{txt}{space 7}ydum5 {c |}{res}{col 18}-.1079167{col 31}-.1064893{col 47}-.0014275{col 63} .0055157
{txt}{hline 13}{c BT}{hline 64}
{ralign 78:b = consistent under Ho and Ha; obtained from xtivreg}
{ralign 78:B = inconsistent under Ha, efficient under Ho; obtained from xtreg}

    Test:  Ho:  difference in coefficients not systematic

{ralign 25:chi2({res:10})} = (b-B)'[(V_b-V_B)^(-1)](b-B)
{col 27}=  {res}     13.83
{txt}{col 17}Prob>chi2 =  {res}    0.1810
{txt}
{com}. * District safety [3]
. xtlogit libvote libntdnpty lagood100libntdn lagood100 cookfavlibntdn cookfav cookfavdist distmedian aff demrep ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-6620.4964}  
Iteration 1:{space 3}log likelihood = {res:-3152.2253}  
Iteration 2:{space 3}log likelihood = {res:-3036.9562}  
Iteration 3:{space 3}log likelihood = {res:-3033.7325}  
Iteration 4:{space 3}log likelihood = {res:-3033.7269}  
Iteration 5:{space 3}log likelihood = {res:-3033.7269}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3033.7269
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3015.5957
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3009.0287
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3011.8604

{txt}Iteration 0:{space 3}log likelihood = {res:-3009.0288}  
Iteration 1:{space 3}log likelihood = {res:-3003.8878}  
Iteration 2:{space 3}log likelihood = {res:-3003.8239}  
Iteration 3:{space 3}log likelihood = {res:-3003.8238}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,608
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       765

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.6
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}14{txt}){col 67}={col 70}{res}  2121.54
{txt}Log likelihood  = {res}-3003.8238{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}         libvote{col 18}{c |}      Coef.{col 30}   Std. Err.{col 42}      z{col 50}   P>|z|{col 58}     [95% Con{col 71}f. Interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}libntdnpty {c |}{col 18}{res}{space 2} 1.736568{col 30}{space 2} .5046145{col 41}{space 1}    3.44{col 50}{space 3}0.001{col 58}{space 4} .7475419{col 71}{space 3} 2.725594
{txt}lagood100libntdn {c |}{col 18}{res}{space 2} 1.483742{col 30}{space 2} .7017741{col 41}{space 1}    2.11{col 50}{space 3}0.034{col 58}{space 4} .1082904{col 71}{space 3} 2.859194
{txt}{space 7}lagood100 {c |}{col 18}{res}{space 2}-.4284644{col 30}{space 2} .4167794{col 41}{space 1}   -1.03{col 50}{space 3}0.304{col 58}{space 4}-1.245337{col 71}{space 3} .3884083
{txt}{space 2}cookfavlibntdn {c |}{col 18}{res}{space 2} .2506812{col 30}{space 2} .0167638{col 41}{space 1}   14.95{col 50}{space 3}0.000{col 58}{space 4} .2178247{col 71}{space 3} .2835376
{txt}{space 9}cookfav {c |}{col 18}{res}{space 2} .0103285{col 30}{space 2} .0120824{col 41}{space 1}    0.85{col 50}{space 3}0.393{col 58}{space 4}-.0133525{col 71}{space 3} .0340095
{txt}{space 5}cookfavdist {c |}{col 18}{res}{space 2}-.2437583{col 30}{space 2} .0224019{col 41}{space 1}  -10.88{col 50}{space 3}0.000{col 58}{space 4}-.2876651{col 71}{space 3}-.1998515
{txt}{space 6}distmedian {c |}{col 18}{res}{space 2} 2.984656{col 30}{space 2} .3585408{col 41}{space 1}    8.32{col 50}{space 3}0.000{col 58}{space 4} 2.281929{col 71}{space 3} 3.687383
{txt}{space 13}aff {c |}{col 18}{res}{space 2} .5121351{col 30}{space 2} .3624511{col 41}{space 1}    1.41{col 50}{space 3}0.158{col 58}{space 4} -.198256{col 71}{space 3} 1.222526
{txt}{space 10}demrep {c |}{col 18}{res}{space 2} 2.151072{col 30}{space 2} .1460955{col 41}{space 1}   14.72{col 50}{space 3}0.000{col 58}{space 4}  1.86473{col 71}{space 3} 2.437414
{txt}{space 11}ydum1 {c |}{col 18}{res}{space 2} -1.32461{col 30}{space 2} .1385608{col 41}{space 1}   -9.56{col 50}{space 3}0.000{col 58}{space 4}-1.596184{col 71}{space 3}-1.053036
{txt}{space 11}ydum2 {c |}{col 18}{res}{space 2}-.5221014{col 30}{space 2} .1453759{col 41}{space 1}   -3.59{col 50}{space 3}0.000{col 58}{space 4} -.807033{col 71}{space 3}-.2371698
{txt}{space 11}ydum3 {c |}{col 18}{res}{space 2}-1.277264{col 30}{space 2} .1467069{col 41}{space 1}   -8.71{col 50}{space 3}0.000{col 58}{space 4}-1.564805{col 71}{space 3}-.9897242
{txt}{space 11}ydum4 {c |}{col 18}{res}{space 2}-1.885588{col 30}{space 2} .1514174{col 41}{space 1}  -12.45{col 50}{space 3}0.000{col 58}{space 4}-2.182361{col 71}{space 3}-1.588816
{txt}{space 11}ydum5 {c |}{col 18}{res}{space 2}-.4134056{col 30}{space 2} .1753772{col 41}{space 1}   -2.36{col 50}{space 3}0.018{col 58}{space 4}-.7571386{col 71}{space 3}-.0696726
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}-3.000528{col 30}{space 2} .3436223{col 41}{space 1}   -8.73{col 50}{space 3}0.000{col 58}{space 4}-3.674015{col 71}{space 3} -2.32704
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}/lnsig2u {c |}{col 18}{res}{space 2} -1.00758{col 30}{space 2} .1889287{col 58}{space 4}-1.377874{col 71}{space 3} -.637287
{txt}{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
         sigma_u {c |}{col 18}{res}{space 2} .6042361{col 30}{space 2} .0570788{col 58}{space 4} .5021096{col 71}{space 3} .7271347
{txt}             rho {c |}{col 18}{res}{space 2} .0998918{col 30}{space 2} .0169872{col 58}{space 4} .0711788{col 71}{space 3} .1384607
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}59.81{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. 
. 
. *** Supplemental Appendix ***
. 
. * S3. Yea Vote
. xtlogit yeavote yeantdnpty partyposyea yeadistmedian yeaaff ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-6693.8409}  
Iteration 1:{space 3}log likelihood = {res:-3451.9891}  
Iteration 2:{space 3}log likelihood = {res:-3332.8375}  
Iteration 3:{space 3}log likelihood = {res:-3327.8642}  
Iteration 4:{space 3}log likelihood = {res: -3327.845}  
Iteration 5:{space 3}log likelihood = {res: -3327.845}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res} -3327.845
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3310.2948
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3304.6426
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3309.7941

{txt}Iteration 0:{space 3}log likelihood = {res:-3304.6426}  
Iteration 1:{space 3}log likelihood = {res:-3298.8959}  
Iteration 2:{space 3}log likelihood = {res:-3298.8678}  
Iteration 3:{space 3}log likelihood = {res:-3298.8677}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       780

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}9{txt}){col 67}={col 70}{res}  2623.43
{txt}Log likelihood  = {res}-3298.8677{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      yeavote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}yeantdnpty {c |}{col 15}{res}{space 2}  5.07644{col 27}{space 2} .2795885{col 38}{space 1}   18.16{col 47}{space 3}0.000{col 55}{space 4} 4.528457{col 68}{space 3} 5.624424
{txt}{space 2}partyposyea {c |}{col 15}{res}{space 2} 1.886575{col 27}{space 2} .1399749{col 38}{space 1}   13.48{col 47}{space 3}0.000{col 55}{space 4}  1.61223{col 68}{space 3} 2.160921
{txt}yeadistmedian {c |}{col 15}{res}{space 2} 1.494987{col 27}{space 2} .2839544{col 38}{space 1}    5.26{col 47}{space 3}0.000{col 55}{space 4} .9384463{col 68}{space 3} 2.051527
{txt}{space 7}yeaaff {c |}{col 15}{res}{space 2}-2.660987{col 27}{space 2} .3935201{col 38}{space 1}   -6.76{col 47}{space 3}0.000{col 55}{space 4}-3.432272{col 68}{space 3}-1.889701
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2} .7490419{col 27}{space 2} .1337016{col 38}{space 1}    5.60{col 47}{space 3}0.000{col 55}{space 4} .4869916{col 68}{space 3} 1.011092
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2} 1.106733{col 27}{space 2} .1393775{col 38}{space 1}    7.94{col 47}{space 3}0.000{col 55}{space 4} .8335583{col 68}{space 3} 1.379908
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-.3855234{col 27}{space 2} .1408888{col 38}{space 1}   -2.74{col 47}{space 3}0.006{col 55}{space 4}-.6616604{col 68}{space 3}-.1093865
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2} .1758092{col 27}{space 2}  .175412{col 38}{space 1}    1.00{col 47}{space 3}0.316{col 55}{space 4} -.167992{col 68}{space 3} .5196103
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2} .1390114{col 27}{space 2} .1869709{col 38}{space 1}    0.74{col 47}{space 3}0.457{col 55}{space 4}-.2274449{col 68}{space 3} .5054676
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} -2.84096{col 27}{space 2} .2710631{col 38}{space 1}  -10.48{col 47}{space 3}0.000{col 55}{space 4}-3.372233{col 68}{space 3}-2.309686
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}/lnsig2u {c |}{col 15}{res}{space 2}-1.047358{col 27}{space 2} .1839045{col 55}{space 4}-1.407804{col 68}{space 3}-.6869114
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |}{col 15}{res}{space 2} .5923375{col 27}{space 2} .0544668{col 55}{space 4} .4946515{col 68}{space 3} .7093149
{txt}          rho {c |}{col 15}{res}{space 2} .0963717{col 27}{space 2} .0160152{col 55}{space 4} .0692253{col 68}{space 3} .1326465
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}57.95{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. 
. * S4. Alternative Specifications 
. * No controls [1]
. xtlogit libvote libntdnpty if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -6840.513}  
Iteration 1:{space 3}log likelihood = {res:-3762.5275}  
Iteration 2:{space 3}log likelihood = {res:-3747.0897}  
Iteration 3:{space 3}log likelihood = {res:-3747.0713}  
Iteration 4:{space 3}log likelihood = {res:-3747.0713}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3747.0713
{txt}tau = {res} 0.1     {txt}log likelihood = {res} -3669.868
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3612.8689
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3571.4135
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-3542.8893
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-3526.4723
{txt}tau = {res} 0.6     {txt}log likelihood = {res} -3523.552
{txt}tau = {res} 0.7     {txt}log likelihood = {res}-3538.4099

{txt}Iteration 0:{space 3}log likelihood = {res:-3523.5371}  
Iteration 1:{space 3}log likelihood = {res:-3521.5708}  
Iteration 2:{space 3}log likelihood = {res:-3521.5651}  
Iteration 3:{space 3}log likelihood = {res:-3521.5651}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       780

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}1{txt}){col 67}={col 70}{res}  1896.90
{txt}Log likelihood  = {res}-3521.5651{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 6.673816{col 26}{space 2} .1532329{col 37}{space 1}   43.55{col 46}{space 3}0.000{col 54}{space 4} 6.373485{col 67}{space 3} 6.974146
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-3.376535{col 26}{space 2} .0987955{col 37}{space 1}  -34.18{col 46}{space 3}0.000{col 54}{space 4}-3.570171{col 67}{space 3}  -3.1829
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2}  .304903{col 26}{space 2} .1037535{col 54}{space 4}   .10155{col 67}{space 3} .5082561
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} 1.164686{col 26}{space 2} .0604201{col 54}{space 4} 1.052086{col 67}{space 3} 1.289337
{txt}         rho {c |}{col 14}{res}{space 2} .2919475{col 26}{space 2} .0214473{col 54}{space 4} .2517506{col 67}{space 3} .3356832
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}451.01{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Basic logit [2]
. logit libvote libntdnpty distmedian demrep aff ydum1-ydum5 if distN>39, cluster(nameid)

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res: -6840.513}  
Iteration 1:{space 3}log pseudolikelihood = {res:-3431.1888}  
Iteration 2:{space 3}log pseudolikelihood = {res:-3378.0888}  
Iteration 3:{space 3}log pseudolikelihood = {res: -3377.779}  
Iteration 4:{space 3}log pseudolikelihood = {res: -3377.779}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     9,921
{txt}{col 49}Wald chi2({res}9{txt}){col 67}= {res}   2415.46
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res} -3377.779{txt}{col 49}Pseudo R2{col 67}= {res}    0.5062

{txt}{ralign 78:(Std. Err. adjusted for {res:780} clusters in nameid)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 2.967657{col 26}{space 2} .2619693{col 37}{space 1}   11.33{col 46}{space 3}0.000{col 54}{space 4} 2.454207{col 67}{space 3} 3.481107
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 3.122453{col 26}{space 2} .3932772{col 37}{space 1}    7.94{col 46}{space 3}0.000{col 54}{space 4} 2.351644{col 67}{space 3} 3.893262
{txt}{space 6}demrep {c |}{col 14}{res}{space 2} 2.432718{col 26}{space 2}  .130297{col 37}{space 1}   18.67{col 46}{space 3}0.000{col 54}{space 4}  2.17734{col 67}{space 3} 2.688095
{txt}{space 9}aff {c |}{col 14}{res}{space 2}-.1609831{col 26}{space 2} .4011716{col 37}{space 1}   -0.40{col 46}{space 3}0.688{col 54}{space 4}-.9472649{col 67}{space 3} .6252987
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-1.442879{col 26}{space 2} .1427604{col 37}{space 1}  -10.11{col 46}{space 3}0.000{col 54}{space 4}-1.722684{col 67}{space 3}-1.163074
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-.8474076{col 26}{space 2} .1378336{col 37}{space 1}   -6.15{col 46}{space 3}0.000{col 54}{space 4}-1.117557{col 67}{space 3}-.5772586
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.607489{col 26}{space 2} .1306086{col 37}{space 1}  -12.31{col 46}{space 3}0.000{col 54}{space 4}-1.863477{col 67}{space 3}  -1.3515
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-1.983528{col 26}{space 2} .1194989{col 37}{space 1}  -16.60{col 46}{space 3}0.000{col 54}{space 4}-2.217741{col 67}{space 3}-1.749314
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2} -.549841{col 26}{space 2} .1542977{col 37}{space 1}   -3.56{col 46}{space 3}0.000{col 54}{space 4}-.8522589{col 67}{space 3}-.2474231
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} -3.18565{col 26}{space 2} .1786794{col 37}{space 1}  -17.83{col 46}{space 3}0.000{col 54}{space 4}-3.535855{col 67}{space 3}-2.835444
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. * 100 respondent threshold [3]
. xtlogit libvote libntdnpty distmedian demrep aff ydum1-ydum5 if distN>99, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-3769.5009}  
Iteration 1:{space 3}log likelihood = {res:-1617.4228}  
Iteration 2:{space 3}log likelihood = {res:-1591.8534}  
Iteration 3:{space 3}log likelihood = {res:-1590.2649}  
Iteration 4:{space 3}log likelihood = {res:-1590.2613}  
Iteration 5:{space 3}log likelihood = {res:-1590.2613}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-1590.2613
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-1579.4773
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-1572.4676
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-1569.5821
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-1571.3844

{txt}Iteration 0:{space 3}log likelihood = {res:-1569.5823}  
Iteration 1:{space 3}log likelihood = {res:-1561.9178}  
Iteration 2:{space 3}log likelihood = {res:-1561.6958}  
Iteration 3:{space 3}log likelihood = {res:-1561.6957}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     5,450
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       630

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       8.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}9{txt}){col 67}={col 70}{res}  1105.69
{txt}Log likelihood  = {res}-1561.6957{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 5.406061{col 26}{space 2} .3728819{col 37}{space 1}   14.50{col 46}{space 3}0.000{col 54}{space 4} 4.675226{col 67}{space 3} 6.136896
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 1.823538{col 26}{space 2} .5803146{col 37}{space 1}    3.14{col 46}{space 3}0.002{col 54}{space 4} .6861418{col 67}{space 3} 2.960933
{txt}{space 6}demrep {c |}{col 14}{res}{space 2} 2.343607{col 26}{space 2} .2022681{col 37}{space 1}   11.59{col 46}{space 3}0.000{col 54}{space 4} 1.947169{col 67}{space 3} 2.740045
{txt}{space 9}aff {c |}{col 14}{res}{space 2}-.7187946{col 26}{space 2}  .608762{col 37}{space 1}   -1.18{col 46}{space 3}0.238{col 54}{space 4}-1.911946{col 67}{space 3} .4743569
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-1.376977{col 26}{space 2} .2187922{col 37}{space 1}   -6.29{col 46}{space 3}0.000{col 54}{space 4}-1.805801{col 67}{space 3}-.9481517
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-.5937353{col 26}{space 2} .2428759{col 37}{space 1}   -2.44{col 46}{space 3}0.015{col 54}{space 4}-1.069763{col 67}{space 3}-.1177072
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.754221{col 26}{space 2} .1723951{col 37}{space 1}  -10.18{col 46}{space 3}0.000{col 54}{space 4}-2.092109{col 67}{space 3}-1.416333
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-2.323217{col 26}{space 2} .1835037{col 37}{space 1}  -12.66{col 46}{space 3}0.000{col 54}{space 4}-2.682878{col 67}{space 3}-1.963557
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-.5712624{col 26}{space 2} .2138814{col 37}{space 1}   -2.67{col 46}{space 3}0.008{col 54}{space 4}-.9904623{col 67}{space 3}-.1520626
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-3.331259{col 26}{space 2}  .321946{col 37}{space 1}  -10.35{col 46}{space 3}0.000{col 54}{space 4}-3.962261{col 67}{space 3}-2.700256
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2}-.2868414{col 26}{space 2} .2042355{col 54}{space 4}-.6871356{col 67}{space 3} .1134528
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .8663895{col 26}{space 2} .0884737{col 54}{space 4} .7092354{col 67}{space 3} 1.058366
{txt}         rho {c |}{col 14}{res}{space 2} .1857768{col 26}{space 2} .0308934{col 54}{space 4} .1326207{col 67}{space 3} .2539994
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}57.13{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * MRP Model [4]
. xtlogit libvote libntdnpty distmedian_mrp demrep aff ydum1-ydum5, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-6496.4271}  
Iteration 1:{space 3}log likelihood = {res:-3253.5535}  
Iteration 2:{space 3}log likelihood = {res:-3197.8815}  
Iteration 3:{space 3}log likelihood = {res:-3197.5668}  
Iteration 4:{space 3}log likelihood = {res:-3197.5667}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3197.5667
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3155.1163
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3128.5503
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3114.7098
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-3111.8441
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-3120.0125

{txt}Iteration 0:{space 3}log likelihood = {res:-3111.8723}  
Iteration 1:{space 3}log likelihood = {res:-3093.1295}  
Iteration 2:{space 3}log likelihood = {res:-3092.9458}  
Iteration 3:{space 3}log likelihood = {res:-3092.9457}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,441
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       756

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         1
{txt}{col 63}avg{col 67}={col 69}{res}      12.5
{txt}{col 63}max{col 67}={col 69}{res}        25

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}9{txt}){col 67}={col 70}{res}  1848.32
{txt}Log likelihood  = {res}-3092.9457{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       libvote{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      z{col 48}   P>|z|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}libntdnpty {c |}{col 16}{res}{space 2} 3.738043{col 28}{space 2} .2502161{col 39}{space 1}   14.94{col 48}{space 3}0.000{col 56}{space 4} 3.247629{col 69}{space 3} 4.228458
{txt}distmedian_mrp {c |}{col 16}{res}{space 2} 5.009718{col 28}{space 2} .4440058{col 39}{space 1}   11.28{col 48}{space 3}0.000{col 56}{space 4} 4.139482{col 69}{space 3} 5.879953
{txt}{space 8}demrep {c |}{col 16}{res}{space 2} 2.427807{col 28}{space 2} .1548954{col 39}{space 1}   15.67{col 48}{space 3}0.000{col 56}{space 4} 2.124217{col 69}{space 3} 2.731396
{txt}{space 11}aff {c |}{col 16}{res}{space 2}-1.586004{col 28}{space 2} .4064756{col 39}{space 1}   -3.90{col 48}{space 3}0.000{col 56}{space 4}-2.382681{col 69}{space 3} -.789326
{txt}{space 9}ydum1 {c |}{col 16}{res}{space 2}-1.456088{col 28}{space 2} .1371196{col 39}{space 1}  -10.62{col 48}{space 3}0.000{col 56}{space 4}-1.724838{col 69}{space 3}-1.187339
{txt}{space 9}ydum2 {c |}{col 16}{res}{space 2}-.9911475{col 28}{space 2} .1484346{col 39}{space 1}   -6.68{col 48}{space 3}0.000{col 56}{space 4}-1.282074{col 69}{space 3}-.7002212
{txt}{space 9}ydum3 {c |}{col 16}{res}{space 2}-1.497992{col 28}{space 2} .1431831{col 39}{space 1}  -10.46{col 48}{space 3}0.000{col 56}{space 4}-1.778626{col 69}{space 3}-1.217358
{txt}{space 9}ydum4 {c |}{col 16}{res}{space 2}-2.095238{col 28}{space 2} .1499579{col 39}{space 1}  -13.97{col 48}{space 3}0.000{col 56}{space 4} -2.38915{col 69}{space 3}-1.801326
{txt}{space 9}ydum5 {c |}{col 16}{res}{space 2}-.5452292{col 28}{space 2} .2011374{col 39}{space 1}   -2.71{col 48}{space 3}0.007{col 56}{space 4}-.9394511{col 69}{space 3}-.1510072
{txt}{space 9}_cons {c |}{col 16}{res}{space 2}-3.796299{col 28}{space 2} .2314712{col 39}{space 1}  -16.40{col 48}{space 3}0.000{col 56}{space 4}-4.249974{col 69}{space 3}-3.342624
{txt}{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}/lnsig2u {c |}{col 16}{res}{space 2}-.1727786{col 28}{space 2} .1279105{col 56}{space 4}-.4234785{col 69}{space 3} .0779213
{txt}{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
       sigma_u {c |}{col 16}{res}{space 2} .9172371{col 28}{space 2} .0586621{col 56}{space 4} .8091756{col 69}{space 3}  1.03973
{txt}           rho {c |}{col 16}{res}{space 2} .2036516{col 28}{space 2} .0207442{col 56}{space 4} .1659889{col 69}{space 3} .2473258
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}209.24{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Fixed effects, LPM [5]
. xtreg libvote libntdnpty distmedian demrep aff ydum1-ydum5 if distN>39, fe
{p 0 6 2}{txt}note: demrep omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{txt}{col 49}Number of groups{col 67}={col 69}{res}       780

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.2057{col 63}{txt}min{col 67}={col 69}{res}         2
{txt}     between = {res}0.7793{col 63}{txt}avg{col 67}={col 69}{res}      12.7
{txt}     overall = {res}0.5281{col 63}{txt}max{col 67}={col 69}{res}        26

{txt}{col 49}F({res}8{txt},{res}9133{txt}){col 67}={col 70}{res}   295.69
{txt}corr(u_i, Xb){col 16}= {res}0.5690{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} .6663012{col 26}{space 2} .0238709{col 37}{space 1}   27.91{col 46}{space 3}0.000{col 54}{space 4} .6195089{col 67}{space 3} .7130935
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} .0866408{col 26}{space 2} .0327213{col 37}{space 1}    2.65{col 46}{space 3}0.008{col 54}{space 4} .0224998{col 67}{space 3} .1507817
{txt}{space 6}demrep {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}aff {c |}{col 14}{res}{space 2}-.0154882{col 26}{space 2} .0330519{col 37}{space 1}   -0.47{col 46}{space 3}0.639{col 54}{space 4}-.0802773{col 67}{space 3}  .049301
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-.1988209{col 26}{space 2} .0139371{col 37}{space 1}  -14.27{col 46}{space 3}0.000{col 54}{space 4}-.2261407{col 67}{space 3}-.1715012
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-.1201022{col 26}{space 2}  .014087{col 37}{space 1}   -8.53{col 46}{space 3}0.000{col 54}{space 4}-.1477158{col 67}{space 3}-.0924886
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-.1937048{col 26}{space 2} .0130091{col 37}{space 1}  -14.89{col 46}{space 3}0.000{col 54}{space 4}-.2192056{col 67}{space 3} -.168204
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-.2462909{col 26}{space 2} .0140512{col 37}{space 1}  -17.53{col 46}{space 3}0.000{col 54}{space 4}-.2738345{col 67}{space 3}-.2187473
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-.0963715{col 26}{space 2} .0158688{col 37}{space 1}   -6.07{col 46}{space 3}0.000{col 54}{space 4} -.127478{col 67}{space 3}-.0652651
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2724557{col 26}{space 2} .0190732{col 37}{space 1}   14.28{col 46}{space 3}0.000{col 54}{space 4}  .235068{col 67}{space 3} .3098435
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |} {res} .21506318
     {txt}sigma_e {c |} {res} .30880295
         {txt}rho {c |} {res} .32661327{txt}   (fraction of variance due to u_i)
{hline 13}{c BT}{hline 64}
F test that all u_i=0: F({res}779{txt}, {res}9133{txt}) = {res}3.15{col 62}{txt}Prob > F = {res}0.0000
{txt}
{com}. * Validated donors [6]
. xtlogit libvote vallibntdnpty distmedian demrep aff ydum1-ydum5 if distN>39, re
{txt}note: ydum1 omitted because of collinearity
note: ydum2 omitted because of collinearity
note: ydum3 omitted because of collinearity
note: ydum4 omitted because of collinearity
note: ydum5 omitted because of collinearity

Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -787.3148}  
Iteration 1:{space 3}log likelihood = {res:-238.78209}  
Iteration 2:{space 3}log likelihood = {res: -209.4636}  
Iteration 3:{space 3}log likelihood = {res:-198.49897}  
Iteration 4:{space 3}log likelihood = {res:-198.26088}  
Iteration 5:{space 3}log likelihood = {res:-198.25985}  
Iteration 6:{space 3}log likelihood = {res:-198.25985}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-198.25985
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-198.03701
{txt}tau = {res} 0.2     {txt}log likelihood = {res} -197.8779
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-197.84908
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-198.07818

{txt}Iteration 0:{space 3}log likelihood = {res:-197.84908}  
Iteration 1:{space 3}log likelihood = {res:-197.07253}  
Iteration 2:{space 3}log likelihood = {res:-195.91102}  
Iteration 3:{space 3}log likelihood = {res:-195.89099}  
Iteration 4:{space 3}log likelihood = {res:-195.89097}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     1,169
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       394

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         1
{txt}{col 63}avg{col 67}={col 69}{res}       3.0
{txt}{col 63}max{col 67}={col 69}{res}         3

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}4{txt}){col 67}={col 70}{res}    42.27
{txt}Log likelihood  = {res}-195.89097{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      libvote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
vallibntdnpty {c |}{col 15}{res}{space 2} 14.46639{col 27}{space 2}    2.479{col 38}{space 1}    5.84{col 47}{space 3}0.000{col 55}{space 4} 9.607641{col 68}{space 3} 19.32514
{txt}{space 3}distmedian {c |}{col 15}{res}{space 2} 6.466243{col 27}{space 2} 2.315474{col 38}{space 1}    2.79{col 47}{space 3}0.005{col 55}{space 4} 1.927997{col 68}{space 3} 11.00449
{txt}{space 7}demrep {c |}{col 15}{res}{space 2} 2.147073{col 27}{space 2} .7793478{col 38}{space 1}    2.75{col 47}{space 3}0.006{col 55}{space 4} .6195795{col 68}{space 3} 3.674567
{txt}{space 10}aff {c |}{col 15}{res}{space 2}-19.07206{col 27}{space 2} 4.124495{col 38}{space 1}   -4.62{col 47}{space 3}0.000{col 55}{space 4}-27.15592{col 68}{space 3} -10.9882
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 8}ydum2 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 8}ydum3 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 8}ydum4 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 8}ydum5 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 8}_cons {c |}{col 15}{res}{space 2}-2.756736{col 27}{space 2} 1.079049{col 38}{space 1}   -2.55{col 47}{space 3}0.011{col 55}{space 4}-4.871634{col 68}{space 3}-.6418392
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}/lnsig2u {c |}{col 15}{res}{space 2} 1.025434{col 27}{space 2} .6779074{col 55}{space 4}  -.30324{col 68}{space 3} 2.354108
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |}{col 15}{res}{space 2} 1.669822{col 27}{space 2} .5659924{col 55}{space 4} .8593148{col 68}{space 3} 3.244801
{txt}          rho {c |}{col 15}{res}{space 2} .4587407{col 27}{space 2} .1683228{col 55}{space 4}  .183309{col 68}{space 3} .7619247
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}4.74{col 56}{txt}Prob >= chibar2 = {res}0.015
{txt}
{com}. 
. * S5. Alternative party specifications
. * DW-Nominate [1]
. xtlogit libvote libntdnpty distmedian nominate aff ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -6840.513}  
Iteration 1:{space 3}log likelihood = {res:-3231.9109}  
Iteration 2:{space 3}log likelihood = {res:-3123.2896}  
Iteration 3:{space 3}log likelihood = {res:-3122.2735}  
Iteration 4:{space 3}log likelihood = {res:-3122.2733}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3122.2733
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3110.5787
{txt}tau = {res} 0.2     {txt}log likelihood = {res}  -3110.57
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3119.8805

{txt}Iteration 0:{space 3}log likelihood = {res:  -3110.57}  
Iteration 1:{space 3}log likelihood = {res:-3103.8354}  
Iteration 2:{space 3}log likelihood = {res:-3103.7641}  
Iteration 3:{space 3}log likelihood = {res:-3103.7639}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       780

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}9{txt}){col 67}={col 70}{res}  2252.09
{txt}Log likelihood  = {res}-3103.7639{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 3.064056{col 26}{space 2} .2213348{col 37}{space 1}   13.84{col 46}{space 3}0.000{col 54}{space 4} 2.630248{col 67}{space 3} 3.497864
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 2.485641{col 26}{space 2} .3206881{col 37}{space 1}    7.75{col 46}{space 3}0.000{col 54}{space 4} 1.857104{col 67}{space 3} 3.114178
{txt}{space 4}nominate {c |}{col 14}{res}{space 2} 3.748742{col 26}{space 2} .1551375{col 37}{space 1}   24.16{col 46}{space 3}0.000{col 54}{space 4} 3.444678{col 67}{space 3} 4.052806
{txt}{space 9}aff {c |}{col 14}{res}{space 2} .8556726{col 26}{space 2} .3535238{col 37}{space 1}    2.42{col 46}{space 3}0.016{col 54}{space 4} .1627788{col 67}{space 3} 1.548567
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-1.800438{col 26}{space 2} .1304477{col 37}{space 1}  -13.80{col 46}{space 3}0.000{col 54}{space 4} -2.05611{col 67}{space 3}-1.544765
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-1.104366{col 26}{space 2}  .136968{col 37}{space 1}   -8.06{col 46}{space 3}0.000{col 54}{space 4}-1.372818{col 67}{space 3}-.8359136
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.899466{col 26}{space 2} .1329499{col 37}{space 1}  -14.29{col 46}{space 3}0.000{col 54}{space 4}-2.160043{col 67}{space 3}-1.638889
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-2.390972{col 26}{space 2} .1472541{col 37}{space 1}  -16.24{col 46}{space 3}0.000{col 54}{space 4}-2.679585{col 67}{space 3}-2.102359
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2} -.771215{col 26}{space 2} .1712889{col 37}{space 1}   -4.50{col 46}{space 3}0.000{col 54}{space 4}-1.106935{col 67}{space 3}-.4354949
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-1.705574{col 26}{space 2} .2086145{col 37}{space 1}   -8.18{col 46}{space 3}0.000{col 54}{space 4}-2.114451{col 67}{space 3}-1.296697
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2}-1.291782{col 26}{space 2} .2232522{col 54}{space 4}-1.729348{col 67}{space 3}-.8542161
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .5241952{col 26}{space 2} .0585139{col 54}{space 4} .4211887{col 67}{space 3} .6523931
{txt}         rho {c |}{col 14}{res}{space 2} .0770849{col 26}{space 2} .0158828{col 54}{space 4} .0511642{col 67}{space 3} .1145521
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}37.02{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Majority control [2]
. xtlogit libvote libntdnpty majlibntdn distmedian aff majority demrep ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -6840.513}  
Iteration 1:{space 3}log likelihood = {res: -3434.755}  
Iteration 2:{space 3}log likelihood = {res:-3373.5132}  
Iteration 3:{space 3}log likelihood = {res:-3372.4529}  
Iteration 4:{space 3}log likelihood = {res:-3372.4519}  
Iteration 5:{space 3}log likelihood = {res:-3372.4519}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3372.4519
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3322.8108
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3290.8728
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3273.2476
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-3267.8462
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-3274.3258

{txt}Iteration 0:{space 3}log likelihood = {res:-3267.8629}  
Iteration 1:{space 3}log likelihood = {res:-3245.1347}  
Iteration 2:{space 3}log likelihood = {res: -3244.962}  
Iteration 3:{space 3}log likelihood = {res:-3244.9619}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       780

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}11{txt}){col 67}={col 70}{res}  1902.97
{txt}Log likelihood  = {res}-3244.9619{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 4.604169{col 26}{space 2} .3810652{col 37}{space 1}   12.08{col 46}{space 3}0.000{col 54}{space 4} 3.857295{col 67}{space 3} 5.351043
{txt}{space 2}majlibntdn {c |}{col 14}{res}{space 2}-.6546512{col 26}{space 2} .4180551{col 37}{space 1}   -1.57{col 46}{space 3}0.117{col 54}{space 4}-1.474024{col 67}{space 3} .1647218
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 2.248757{col 26}{space 2} .3405186{col 37}{space 1}    6.60{col 46}{space 3}0.000{col 54}{space 4} 1.581353{col 67}{space 3} 2.916161
{txt}{space 9}aff {c |}{col 14}{res}{space 2} .1508891{col 26}{space 2}  .357372{col 37}{space 1}    0.42{col 46}{space 3}0.673{col 54}{space 4}-.5495472{col 67}{space 3} .8513254
{txt}{space 4}majority {c |}{col 14}{res}{space 2} .1605033{col 26}{space 2}  .227499{col 37}{space 1}    0.71{col 46}{space 3}0.480{col 54}{space 4}-.2853866{col 67}{space 3} .6063932
{txt}{space 6}demrep {c |}{col 14}{res}{space 2} 2.316344{col 26}{space 2} .1650244{col 37}{space 1}   14.04{col 46}{space 3}0.000{col 54}{space 4} 1.992902{col 67}{space 3} 2.639786
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-1.699947{col 26}{space 2} .1495238{col 37}{space 1}  -11.37{col 46}{space 3}0.000{col 54}{space 4}-1.993009{col 67}{space 3}-1.406886
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-.8317477{col 26}{space 2} .1557545{col 37}{space 1}   -5.34{col 46}{space 3}0.000{col 54}{space 4}-1.137021{col 67}{space 3}-.5264745
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.631879{col 26}{space 2}  .162196{col 37}{space 1}  -10.06{col 46}{space 3}0.000{col 54}{space 4}-1.949778{col 67}{space 3}-1.313981
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2} -2.25352{col 26}{space 2} .1546536{col 37}{space 1}  -14.57{col 46}{space 3}0.000{col 54}{space 4}-2.556635{col 67}{space 3}-1.950404
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-.6303464{col 26}{space 2} .1744969{col 37}{space 1}   -3.61{col 46}{space 3}0.000{col 54}{space 4} -.972354{col 67}{space 3}-.2883388
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-3.414625{col 26}{space 2} .2709496{col 37}{space 1}  -12.60{col 46}{space 3}0.000{col 54}{space 4}-3.945676{col 67}{space 3}-2.883573
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2}-.0722648{col 26}{space 2} .1202836{col 54}{space 4}-.3080163{col 67}{space 3} .1634867
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .9645126{col 26}{space 2} .0580075{col 54}{space 4}  .857265{col 67}{space 3} 1.085177
{txt}         rho {c |}{col 14}{res}{space 2} .2204386{col 26}{space 2} .0206702{col 54}{space 4}  .182595{col 67}{space 3} .2635961
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}254.98{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Democrats [3]
. xtlogit libvote libntdnpty distmedian aff ydum1-ydum5 if demrep==1 & distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-1748.3639}  
Iteration 1:{space 3}log likelihood = {res:-1523.4671}  
Iteration 2:{space 3}log likelihood = {res:-1439.8482}  
Iteration 3:{space 3}log likelihood = {res:-1434.8438}  
Iteration 4:{space 3}log likelihood = {res:-1434.6646}  
Iteration 5:{space 3}log likelihood = {res:-1434.6635}  
Iteration 6:{space 3}log likelihood = {res:-1434.6635}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-1434.6635
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-1407.9815
{txt}tau = {res} 0.2     {txt}log likelihood = {res} -1389.696
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-1378.1555
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-1372.1765
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-1371.3795
{txt}tau = {res} 0.6     {txt}log likelihood = {res}-1376.6427

{txt}Iteration 0:{space 3}log likelihood = {res:-1371.4106}  
Iteration 1:{space 3}log likelihood = {res:-1357.6849}  
Iteration 2:{space 3}log likelihood = {res:-1357.3105}  
Iteration 3:{space 3}log likelihood = {res:  -1357.31}  
Iteration 4:{space 3}log likelihood = {res:  -1357.31}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     4,907
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       355

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      13.8
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}8{txt}){col 67}={col 70}{res}   436.66
{txt}Log likelihood  = {res}  -1357.31{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 3.894809{col 26}{space 2} .4585308{col 37}{space 1}    8.49{col 46}{space 3}0.000{col 54}{space 4} 2.996105{col 67}{space 3} 4.793513
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 3.474168{col 26}{space 2} .4720921{col 37}{space 1}    7.36{col 46}{space 3}0.000{col 54}{space 4} 2.548884{col 67}{space 3} 4.399451
{txt}{space 9}aff {c |}{col 14}{res}{space 2}-.5196805{col 26}{space 2} .6086992{col 37}{space 1}   -0.85{col 46}{space 3}0.393{col 54}{space 4}-1.712709{col 67}{space 3}  .673348
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-3.108703{col 26}{space 2} .5311061{col 37}{space 1}   -5.85{col 46}{space 3}0.000{col 54}{space 4}-4.149652{col 67}{space 3}-2.067754
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-2.409274{col 26}{space 2} .5327793{col 37}{space 1}   -4.52{col 46}{space 3}0.000{col 54}{space 4}-3.453502{col 67}{space 3}-1.365046
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-2.598034{col 26}{space 2} .5312607{col 37}{space 1}   -4.89{col 46}{space 3}0.000{col 54}{space 4}-3.639286{col 67}{space 3}-1.556783
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-2.409703{col 26}{space 2} .5442533{col 37}{space 1}   -4.43{col 46}{space 3}0.000{col 54}{space 4}-3.476419{col 67}{space 3}-1.342986
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-2.404709{col 26}{space 2} .5448396{col 37}{space 1}   -4.41{col 46}{space 3}0.000{col 54}{space 4}-3.472575{col 67}{space 3}-1.336843
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2005128{col 26}{space 2} .6040541{col 37}{space 1}    0.33{col 46}{space 3}0.740{col 54}{space 4}-.9834115{col 67}{space 3} 1.384437
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2} .2077813{col 26}{space 2} .1708179{col 54}{space 4}-.1270156{col 67}{space 3} .5425783
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} 1.109479{col 26}{space 2} .0947595{col 54}{space 4} .9384668{col 67}{space 3} 1.311654
{txt}         rho {c |}{col 14}{res}{space 2} .2722838{col 26}{space 2} .0338468{col 54}{space 4}  .211174{col 67}{space 3} .3433797
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}154.71{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Republicans [4]
. xtlogit libvote libntdnpty distmedian aff ydum1-ydum5 if demrep==0 & distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-2559.7333}  
Iteration 1:{space 3}log likelihood = {res:-1897.6148}  
Iteration 2:{space 3}log likelihood = {res:-1823.9669}  
Iteration 3:{space 3}log likelihood = {res:-1819.6757}  
Iteration 4:{space 3}log likelihood = {res:-1819.6593}  
Iteration 5:{space 3}log likelihood = {res:-1819.6593}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-1819.6593
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-1800.2426
{txt}tau = {res} 0.2     {txt}log likelihood = {res}  -1789.15
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-1784.7173
{txt}tau = {res} 0.4     {txt}log likelihood = {res} -1786.255

{txt}Iteration 0:{space 3}log likelihood = {res:-1784.7155}  
Iteration 1:{space 3}log likelihood = {res: -1778.503}  
Iteration 2:{space 3}log likelihood = {res:-1778.4617}  
Iteration 3:{space 3}log likelihood = {res:-1778.4617}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     5,014
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       425

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      11.8
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}8{txt}){col 67}={col 70}{res}   815.27
{txt}Log likelihood  = {res}-1778.4617{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 4.909733{col 26}{space 2}  .393515{col 37}{space 1}   12.48{col 46}{space 3}0.000{col 54}{space 4} 4.138458{col 67}{space 3} 5.681008
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 1.064535{col 26}{space 2} .4881709{col 37}{space 1}    2.18{col 46}{space 3}0.029{col 54}{space 4} .1077379{col 67}{space 3} 2.021333
{txt}{space 9}aff {c |}{col 14}{res}{space 2} 1.025728{col 26}{space 2} .4385693{col 37}{space 1}    2.34{col 46}{space 3}0.019{col 54}{space 4} .1661475{col 67}{space 3} 1.885308
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-.9013914{col 26}{space 2} .1789176{col 37}{space 1}   -5.04{col 46}{space 3}0.000{col 54}{space 4}-1.252063{col 67}{space 3}-.5507194
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-.0921322{col 26}{space 2} .1842418{col 37}{space 1}   -0.50{col 46}{space 3}0.617{col 54}{space 4}-.4532394{col 67}{space 3}  .268975
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.672539{col 26}{space 2} .2244414{col 37}{space 1}   -7.45{col 46}{space 3}0.000{col 54}{space 4}-2.112436{col 67}{space 3}-1.232642
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-3.353614{col 26}{space 2} .2621726{col 37}{space 1}  -12.79{col 46}{space 3}0.000{col 54}{space 4}-3.867462{col 67}{space 3}-2.839765
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2} .2546907{col 26}{space 2}  .209693{col 37}{space 1}    1.21{col 46}{space 3}0.225{col 54}{space 4}   -.1563{col 67}{space 3} .6656815
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-3.738648{col 26}{space 2} .2852002{col 37}{space 1}  -13.11{col 46}{space 3}0.000{col 54}{space 4} -4.29763{col 67}{space 3}-3.179666
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2}-.4548873{col 26}{space 2} .1874634{col 54}{space 4}-.8223087{col 67}{space 3}-.0874658
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .7965673{col 26}{space 2} .0746636{col 54}{space 4} .6628846{col 67}{space 3} .9572096
{txt}         rho {c |}{col 14}{res}{space 2} .1616862{col 26}{space 2} .0254095{col 54}{space 4} .1178285{col 67}{space 3} .2178375
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}82.40{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. 
. * S6. Subconstituencies, alternative specifications
. * District partisan opinion, full sample [1]
. xtlogit libvote libntdnpty distmedian demrep aff distpartisan ydum1-ydum5 if partisanN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -4627.941}  
Iteration 1:{space 3}log likelihood = {res:-1960.7321}  
Iteration 2:{space 3}log likelihood = {res:-1917.0284}  
Iteration 3:{space 3}log likelihood = {res:-1911.9364}  
Iteration 4:{space 3}log likelihood = {res:-1911.9287}  
Iteration 5:{space 3}log likelihood = {res:-1911.9287}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-1911.9287
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-1898.4196
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-1888.9938
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-1884.3123
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-1885.1399

{txt}Iteration 0:{space 3}log likelihood = {res:-1884.3122}  
Iteration 1:{space 3}log likelihood = {res:-1874.1601}  
Iteration 2:{space 3}log likelihood = {res:-1873.2533}  
Iteration 3:{space 3}log likelihood = {res: -1873.253}  
Iteration 4:{space 3}log likelihood = {res: -1873.253}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     6,735
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       690

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       9.8
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}10{txt}){col 67}={col 70}{res}  1302.07
{txt}Log likelihood  = {res} -1873.253{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 4.226428{col 26}{space 2} .5016652{col 37}{space 1}    8.42{col 46}{space 3}0.000{col 54}{space 4} 3.243182{col 67}{space 3} 5.209673
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} .9049185{col 26}{space 2} .7109984{col 37}{space 1}    1.27{col 46}{space 3}0.203{col 54}{space 4}-.4886128{col 67}{space 3}  2.29845
{txt}{space 6}demrep {c |}{col 14}{res}{space 2} 2.589397{col 26}{space 2} .1919172{col 37}{space 1}   13.49{col 46}{space 3}0.000{col 54}{space 4} 2.213246{col 67}{space 3} 2.965548
{txt}{space 9}aff {c |}{col 14}{res}{space 2} .4109985{col 26}{space 2}  .559865{col 37}{space 1}    0.73{col 46}{space 3}0.463{col 54}{space 4}-.6863168{col 67}{space 3} 1.508314
{txt}distpartisan {c |}{col 14}{res}{space 2} 1.364539{col 26}{space 2} .6378538{col 37}{space 1}    2.14{col 46}{space 3}0.032{col 54}{space 4} .1143689{col 67}{space 3}  2.61471
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-1.367672{col 26}{space 2} .1775263{col 37}{space 1}   -7.70{col 46}{space 3}0.000{col 54}{space 4}-1.715617{col 67}{space 3}-1.019727
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-.8091861{col 26}{space 2} .2259997{col 37}{space 1}   -3.58{col 46}{space 3}0.000{col 54}{space 4}-1.252137{col 67}{space 3}-.3662348
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.709241{col 26}{space 2} .1684367{col 37}{space 1}  -10.15{col 46}{space 3}0.000{col 54}{space 4}-2.039371{col 67}{space 3}-1.379112
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-2.086842{col 26}{space 2} .1749569{col 37}{space 1}  -11.93{col 46}{space 3}0.000{col 54}{space 4}-2.429752{col 67}{space 3}-1.743933
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-.5891805{col 26}{space 2} .2085887{col 37}{space 1}   -2.82{col 46}{space 3}0.005{col 54}{space 4}-.9980067{col 67}{space 3}-.1803542
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-3.614422{col 26}{space 2} .3027038{col 37}{space 1}  -11.94{col 46}{space 3}0.000{col 54}{space 4} -4.20771{col 67}{space 3}-3.021133
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2}-.1777594{col 26}{space 2} .1791044{col 54}{space 4}-.5287975{col 67}{space 3} .1732788
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .9149556{col 26}{space 2} .0819363{col 54}{space 4} .7676674{col 67}{space 3} 1.090503
{txt}         rho {c |}{col 14}{res}{space 2}  .202845{col 26}{space 2}  .028961{col 54}{space 4} .1519169{col 67}{space 3} .2655013
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}77.35{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * National activists [2]
. xtlogit libvote libntdnpty distmedian demrep aff ntlactivist ydum1-ydum5 if distN>39, re 
{txt}note: ydum1 omitted because of collinearity

Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-5251.9235}  
Iteration 1:{space 3}log likelihood = {res:-2599.7233}  
Iteration 2:{space 3}log likelihood = {res:-2562.3569}  
Iteration 3:{space 3}log likelihood = {res:-2562.2605}  
Iteration 4:{space 3}log likelihood = {res:-2562.2605}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-2562.2605
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-2536.9818
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-2519.3148
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-2509.4766
{txt}tau = {res} 0.4     {txt}log likelihood = {res} -2507.786
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-2515.1604

{txt}Iteration 0:{space 3}log likelihood = {res:-2507.7813}  
Iteration 1:{space 3}log likelihood = {res:-2491.3004}  
Iteration 2:{space 3}log likelihood = {res:-2491.1581}  
Iteration 3:{space 3}log likelihood = {res: -2491.158}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     7,663
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       709

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      10.8
{txt}{col 63}max{col 67}={col 69}{res}        20

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}9{txt}){col 67}={col 70}{res}  1549.27
{txt}Log likelihood  = {res} -2491.158{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2}  8.07927{col 26}{space 2}  .846273{col 37}{space 1}    9.55{col 46}{space 3}0.000{col 54}{space 4} 6.420605{col 67}{space 3} 9.737934
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 1.544296{col 26}{space 2} .4253534{col 37}{space 1}    3.63{col 46}{space 3}0.000{col 54}{space 4} .7106189{col 67}{space 3} 2.377974
{txt}{space 6}demrep {c |}{col 14}{res}{space 2} 1.846051{col 26}{space 2} .1711869{col 37}{space 1}   10.78{col 46}{space 3}0.000{col 54}{space 4} 1.510531{col 67}{space 3} 2.181571
{txt}{space 9}aff {c |}{col 14}{res}{space 2}-.8409552{col 26}{space 2} .4467143{col 37}{space 1}   -1.88{col 46}{space 3}0.060{col 54}{space 4}-1.716499{col 67}{space 3} .0345888
{txt}{space 1}ntlactivist {c |}{col 14}{res}{space 2}-3.521723{col 26}{space 2} .9282423{col 37}{space 1}   -3.79{col 46}{space 3}0.000{col 54}{space 4}-5.341044{col 67}{space 3}-1.702402
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 7}ydum2 {c |}{col 14}{res}{space 2}-1.054008{col 26}{space 2} .1494096{col 37}{space 1}   -7.05{col 46}{space 3}0.000{col 54}{space 4}-1.346846{col 67}{space 3}-.7611709
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.658472{col 26}{space 2} .1447626{col 37}{space 1}  -11.46{col 46}{space 3}0.000{col 54}{space 4}-1.942202{col 67}{space 3}-1.374743
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-2.006794{col 26}{space 2} .1606195{col 37}{space 1}  -12.49{col 46}{space 3}0.000{col 54}{space 4}-2.321602{col 67}{space 3}-1.691986
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-.6933525{col 26}{space 2} .1826346{col 37}{space 1}   -3.80{col 46}{space 3}0.000{col 54}{space 4} -1.05131{col 67}{space 3}-.3353951
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-2.397461{col 26}{space 2}  .241291{col 37}{space 1}   -9.94{col 46}{space 3}0.000{col 54}{space 4}-2.870382{col 67}{space 3}-1.924539
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2} -.113798{col 26}{space 2} .1419531{col 54}{space 4} -.392021{col 67}{space 3}  .164425
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .9446895{col 26}{space 2} .0670508{col 54}{space 4} .8220036{col 67}{space 3} 1.085686
{txt}         rho {c |}{col 14}{res}{space 2} .2133842{col 26}{space 2}  .023827{col 54}{space 4} .1703896{col 67}{space 3} .2637783
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}142.21{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * District informed opinion [3]
. xtlogit libvote libntdnpty distmedian demrep aff informdistmed ydum1-ydum5 if informedN>39, re 

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-2767.6356}  
Iteration 1:{space 3}log likelihood = {res:-1232.0561}  
Iteration 2:{space 3}log likelihood = {res:-1199.4574}  
Iteration 3:{space 3}log likelihood = {res:-1199.2347}  
Iteration 4:{space 3}log likelihood = {res:-1199.2347}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-1199.2347
{txt}tau = {res} 0.1     {txt}log likelihood = {res}  -1192.16
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-1187.2839
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-1184.9834
{txt}tau = {res} 0.4     {txt}log likelihood = {res} -1185.865

{txt}Iteration 0:{space 3}log likelihood = {res:-1184.9833}  
Iteration 1:{space 3}log likelihood = {res:-1178.2956}  
Iteration 2:{space 3}log likelihood = {res:-1177.6246}  
Iteration 3:{space 3}log likelihood = {res:-1177.6245}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     3,996
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       542

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}       7.4
{txt}{col 63}max{col 67}={col 69}{res}        20

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}10{txt}){col 67}={col 70}{res}   769.43
{txt}Log likelihood  = {res}-1177.6245{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      libvote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}libntdnpty {c |}{col 15}{res}{space 2} 5.231226{col 27}{space 2} .4579438{col 38}{space 1}   11.42{col 47}{space 3}0.000{col 55}{space 4} 4.333672{col 68}{space 3} 6.128779
{txt}{space 3}distmedian {c |}{col 15}{res}{space 2} 4.521726{col 27}{space 2} 1.070795{col 38}{space 1}    4.22{col 47}{space 3}0.000{col 55}{space 4} 2.423007{col 68}{space 3} 6.620446
{txt}{space 7}demrep {c |}{col 15}{res}{space 2} 1.945847{col 27}{space 2} .2707605{col 38}{space 1}    7.19{col 47}{space 3}0.000{col 55}{space 4} 1.415166{col 68}{space 3} 2.476528
{txt}{space 10}aff {c |}{col 15}{res}{space 2}-.0630469{col 27}{space 2} .6627484{col 38}{space 1}   -0.10{col 47}{space 3}0.924{col 55}{space 4} -1.36201{col 68}{space 3} 1.235916
{txt}informdistmed {c |}{col 15}{res}{space 2}-.6180399{col 27}{space 2} .8391222{col 38}{space 1}   -0.74{col 47}{space 3}0.461{col 55}{space 4}-2.262689{col 68}{space 3} 1.026609
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}-1.279082{col 27}{space 2} .2183725{col 38}{space 1}   -5.86{col 47}{space 3}0.000{col 55}{space 4}-1.707085{col 68}{space 3}-.8510803
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2} .1173775{col 27}{space 2} .4954259{col 38}{space 1}    0.24{col 47}{space 3}0.813{col 55}{space 4}-.8536394{col 68}{space 3} 1.088394
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-1.442645{col 27}{space 2}  .200764{col 38}{space 1}   -7.19{col 47}{space 3}0.000{col 55}{space 4}-1.836136{col 68}{space 3}-1.049155
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2}-2.494469{col 27}{space 2} .3156622{col 38}{space 1}   -7.90{col 47}{space 3}0.000{col 55}{space 4}-3.113156{col 68}{space 3}-1.875783
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2} .1162639{col 27}{space 2}  .286252{col 38}{space 1}    0.41{col 47}{space 3}0.685{col 55}{space 4}-.4447798{col 68}{space 3} .6773075
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}-5.052757{col 27}{space 2} .4255563{col 38}{space 1}  -11.87{col 47}{space 3}0.000{col 55}{space 4}-5.886832{col 68}{space 3}-4.218682
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}/lnsig2u {c |}{col 15}{res}{space 2}-.1363644{col 27}{space 2} .2304979{col 55}{space 4}-.5881321{col 68}{space 3} .3154033
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |}{col 15}{res}{space 2} .9340903{col 27}{space 2} .1076529{col 55}{space 4} .7452273{col 68}{space 3} 1.170817
{txt}          rho {c |}{col 15}{res}{space 2} .2096209{col 27}{space 2} .0381889{col 55}{space 4} .1444292{col 68}{space 3} .2941227
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}43.22{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Size of donations [4]
. xtlogit libvote libsmalldonor liblargedonor distmedian demrep aff ydum1-ydum5 if distN>39, re
{txt}note: ydum1 omitted because of collinearity

Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-5251.9235}  
Iteration 1:{space 3}log likelihood = {res:-2616.4981}  
Iteration 2:{space 3}log likelihood = {res:-2577.7922}  
Iteration 3:{space 3}log likelihood = {res:-2577.6672}  
Iteration 4:{space 3}log likelihood = {res:-2577.6672}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-2577.6672
{txt}tau = {res} 0.1     {txt}log likelihood = {res} -2552.492
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-2534.8735
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-2525.0076
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-2523.2217
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-2530.4516

{txt}Iteration 0:{space 3}log likelihood = {res:-2523.2169}  
Iteration 1:{space 3}log likelihood = {res:-2508.0859}  
Iteration 2:{space 3}log likelihood = {res:-2507.9726}  
Iteration 3:{space 3}log likelihood = {res:-2507.9725}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     7,663
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       709

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      10.8
{txt}{col 63}max{col 67}={col 69}{res}        20

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}9{txt}){col 67}={col 70}{res}  1562.57
{txt}Log likelihood  = {res}-2507.9725{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      libvote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
libsmalldonor {c |}{col 15}{res}{space 2} 3.036425{col 27}{space 2} .9827737{col 38}{space 1}    3.09{col 47}{space 3}0.002{col 55}{space 4} 1.110224{col 68}{space 3} 4.962626
{txt}liblargedonor {c |}{col 15}{res}{space 2} 1.915633{col 27}{space 2} .9427627{col 38}{space 1}    2.03{col 47}{space 3}0.042{col 55}{space 4} .0678525{col 68}{space 3} 3.763414
{txt}{space 3}distmedian {c |}{col 15}{res}{space 2} .8616499{col 27}{space 2}  .402764{col 38}{space 1}    2.14{col 47}{space 3}0.032{col 55}{space 4} .0722469{col 68}{space 3} 1.651053
{txt}{space 7}demrep {c |}{col 15}{res}{space 2} 2.178348{col 27}{space 2} .1653122{col 38}{space 1}   13.18{col 47}{space 3}0.000{col 55}{space 4} 1.854343{col 68}{space 3} 2.502354
{txt}{space 10}aff {c |}{col 15}{res}{space 2}-.5332917{col 27}{space 2} .4404782{col 38}{space 1}   -1.21{col 47}{space 3}0.226{col 55}{space 4}-1.396613{col 68}{space 3} .3300297
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}        0{col 27}{txt}  (omitted)
{space 8}ydum2 {c |}{col 15}{res}{space 2}-1.167843{col 27}{space 2} .1502374{col 38}{space 1}   -7.77{col 47}{space 3}0.000{col 55}{space 4}-1.462303{col 68}{space 3}-.8733829
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-1.769319{col 27}{space 2} .1461174{col 38}{space 1}  -12.11{col 47}{space 3}0.000{col 55}{space 4}-2.055704{col 68}{space 3}-1.482934
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2}-2.273596{col 27}{space 2} .1535488{col 38}{space 1}  -14.81{col 47}{space 3}0.000{col 55}{space 4}-2.574546{col 68}{space 3}-1.972646
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2}-.9802814{col 27}{space 2} .1771874{col 38}{space 1}   -5.53{col 47}{space 3}0.000{col 55}{space 4}-1.327562{col 68}{space 3}-.6330006
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}-2.397738{col 27}{space 2} .2397844{col 38}{space 1}  -10.00{col 47}{space 3}0.000{col 55}{space 4}-2.867706{col 68}{space 3}-1.927769
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}/lnsig2u {c |}{col 15}{res}{space 2}-.1371528{col 27}{space 2} .1425096{col 55}{space 4}-.4164665{col 68}{space 3} .1421609
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |}{col 15}{res}{space 2} .9337221{col 27}{space 2} .0665322{col 55}{space 4} .8120176{col 68}{space 3} 1.073668
{txt}          rho {c |}{col 15}{res}{space 2} .2094903{col 27}{space 2} .0236002{col 55}{space 4} .1669619{col 68}{space 3} .2594774
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}139.39{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Member CF score [5]
. xtlogit libvote libntdnpty libcfscore distmedian demrep aff ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-6274.7098}  
Iteration 1:{space 3}log likelihood = {res:-3001.9326}  
Iteration 2:{space 3}log likelihood = {res:-2914.1533}  
Iteration 3:{space 3}log likelihood = {res:-2912.8085}  
Iteration 4:{space 3}log likelihood = {res: -2912.807}  
Iteration 5:{space 3}log likelihood = {res: -2912.807}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res} -2912.807
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-2892.6431
{txt}tau = {res} 0.2     {txt}log likelihood = {res} -2882.803
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-2881.5888
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-2888.5677

{txt}Iteration 0:{space 3}log likelihood = {res:-2881.5874}  
Iteration 1:{space 3}log likelihood = {res:-2875.9314}  
Iteration 2:{space 3}log likelihood = {res:-2875.8925}  
Iteration 3:{space 3}log likelihood = {res:-2875.8925}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,111
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       754

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.1
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}10{txt}){col 67}={col 70}{res}  2054.24
{txt}Log likelihood  = {res}-2875.8925{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}libntdnpty {c |}{col 14}{res}{space 2} 4.340319{col 26}{space 2} .2596416{col 37}{space 1}   16.72{col 46}{space 3}0.000{col 54}{space 4} 3.831431{col 67}{space 3} 4.849207
{txt}{space 2}libcfscore {c |}{col 14}{res}{space 2} 1.890664{col 26}{space 2} .1526584{col 37}{space 1}   12.38{col 46}{space 3}0.000{col 54}{space 4} 1.591459{col 67}{space 3} 2.189869
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 1.892897{col 26}{space 2} .3440167{col 37}{space 1}    5.50{col 46}{space 3}0.000{col 54}{space 4} 1.218636{col 67}{space 3} 2.567157
{txt}{space 6}demrep {c |}{col 14}{res}{space 2}-.7286388{col 26}{space 2} .2883688{col 37}{space 1}   -2.53{col 46}{space 3}0.012{col 54}{space 4}-1.293831{col 67}{space 3}-.1634464
{txt}{space 9}aff {c |}{col 14}{res}{space 2} -.053619{col 26}{space 2} .3747447{col 37}{space 1}   -0.14{col 46}{space 3}0.886{col 54}{space 4}-.7881051{col 67}{space 3}  .680867
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-1.712454{col 26}{space 2} .1432963{col 37}{space 1}  -11.95{col 46}{space 3}0.000{col 54}{space 4}-1.993309{col 67}{space 3}-1.431598
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-.9833195{col 26}{space 2} .1445464{col 37}{space 1}   -6.80{col 46}{space 3}0.000{col 54}{space 4}-1.266625{col 67}{space 3}-.7000137
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.818757{col 26}{space 2} .1428244{col 37}{space 1}  -12.73{col 46}{space 3}0.000{col 54}{space 4}-2.098687{col 67}{space 3}-1.538826
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-2.213439{col 26}{space 2} .1505644{col 37}{space 1}  -14.70{col 46}{space 3}0.000{col 54}{space 4} -2.50854{col 67}{space 3}-1.918339
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-.7794098{col 26}{space 2} .1773711{col 37}{space 1}   -4.39{col 46}{space 3}0.000{col 54}{space 4}-1.127051{col 67}{space 3}-.4317688
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-1.320667{col 26}{space 2} .2602824{col 37}{space 1}   -5.07{col 46}{space 3}0.000{col 54}{space 4}-1.830811{col 67}{space 3}-.8105232
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2}-.7819462{col 26}{space 2} .1775438{col 54}{space 4}-1.129926{col 67}{space 3}-.4339668
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .6763984{col 26}{space 2} .0600452{col 54}{space 4} .5683813{col 67}{space 3} .8049433
{txt}         rho {c |}{col 14}{res}{space 2} .1220891{col 26}{space 2} .0190297{col 54}{space 4} .0894171{col 67}{space 3}  .164542
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}73.83{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. 
. * S7. Party position
. xtivreg yeavote (partyposyea = clintonyea demclintonyea demrep) yeantdnpty yeadistmedian yeaaff ydum1-ydum5 if distN>39, first re
{res}
{txt}First-stage G2SLS regression
{col 50}Number of obs{col 67}={res}{col 69}     9,921
{col 50}{txt}Wald chi({res}11{txt}){col 67}={res}{col 71}   51455
{col 50}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  partyposyea{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}yeantdnpty {c |}{col 15}{res}{space 2} 1.512321{col 27}{space 2} .0074979{col 38}{space 1}  201.70{col 47}{space 3}0.000{col 55}{space 4} 1.497625{col 68}{space 3} 1.527017
{txt}yeadistmedian {c |}{col 15}{res}{space 2} -.430006{col 27}{space 2} .0168009{col 38}{space 1}  -25.59{col 47}{space 3}0.000{col 55}{space 4}-.4629352{col 68}{space 3}-.3970768
{txt}{space 7}yeaaff {c |}{col 15}{res}{space 2}-.6383296{col 27}{space 2} .0223643{col 38}{space 1}  -28.54{col 47}{space 3}0.000{col 55}{space 4}-.6821628{col 68}{space 3}-.5944964
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}-.2336015{col 27}{space 2} .0069859{col 38}{space 1}  -33.44{col 47}{space 3}0.000{col 55}{space 4}-.2472937{col 68}{space 3}-.2199093
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2}-.2365624{col 27}{space 2}  .007684{col 38}{space 1}  -30.79{col 47}{space 3}0.000{col 55}{space 4}-.2516228{col 68}{space 3} -.221502
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2} -.273914{col 27}{space 2} .0070919{col 38}{space 1}  -38.62{col 47}{space 3}0.000{col 55}{space 4}-.2878138{col 68}{space 3}-.2600142
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2}-.2223407{col 27}{space 2} .0100151{col 38}{space 1}  -22.20{col 47}{space 3}0.000{col 55}{space 4}  -.24197{col 68}{space 3}-.2027115
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2} -.289834{col 27}{space 2} .0103251{col 38}{space 1}  -28.07{col 47}{space 3}0.000{col 55}{space 4}-.3100709{col 68}{space 3}-.2695972
{txt}{space 3}clintonyea {c |}{col 15}{res}{space 2}-.1438378{col 27}{space 2} .0065907{col 38}{space 1}  -21.82{col 47}{space 3}0.000{col 55}{space 4}-.1567554{col 68}{space 3}-.1309202
{txt}demclintonyea {c |}{col 15}{res}{space 2} .0591181{col 27}{space 2} .0100931{col 38}{space 1}    5.86{col 47}{space 3}0.000{col 55}{space 4}  .039336{col 68}{space 3} .0789002
{txt}{space 7}demrep {c |}{col 15}{res}{space 2} .0083926{col 27}{space 2} .0071819{col 38}{space 1}    1.17{col 47}{space 3}0.243{col 55}{space 4}-.0056836{col 68}{space 3} .0224689
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} .6079216{col 27}{space 2} .0149109{col 38}{space 1}   40.77{col 47}{space 3}0.000{col 55}{space 4} .5786968{col 68}{space 3} .6371464
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}G2SLS random-effects IV regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{txt}{col 49}Number of groups{col 67}={col 69}{res}       780

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.5821{col 63}{txt}min{col 67}={col 69}{res}         2
{txt}     between = {res}0.4683{col 63}{txt}avg{col 67}={col 69}{res}      12.7
{txt}     overall = {res}0.5791{col 63}{txt}max{col 67}={col 69}{res}        26

{txt}{col 49}Wald chi2({res}9{txt}){col 67}={col 70}{res} 12790.68
{txt}corr(u_i, X){col 20}= {res}0{txt} (assumed){col 49}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      yeavote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}partyposyea {c |}{col 15}{res}{space 2} .5580101{col 27}{space 2} .0578116{col 38}{space 1}    9.65{col 47}{space 3}0.000{col 55}{space 4} .4447014{col 68}{space 3} .6713188
{txt}{space 3}yeantdnpty {c |}{col 15}{res}{space 2} .3456409{col 27}{space 2} .0856722{col 38}{space 1}    4.03{col 47}{space 3}0.000{col 55}{space 4} .1777263{col 68}{space 3} .5135554
{txt}yeadistmedian {c |}{col 15}{res}{space 2} .1677702{col 27}{space 2}  .037915{col 38}{space 1}    4.42{col 47}{space 3}0.000{col 55}{space 4} .0934582{col 68}{space 3} .2420821
{txt}{space 7}yeaaff {c |}{col 15}{res}{space 2}-.1926878{col 27}{space 2} .0467967{col 38}{space 1}   -4.12{col 47}{space 3}0.000{col 55}{space 4}-.2844077{col 68}{space 3}-.1009679
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}  .051606{col 27}{space 2} .0174041{col 38}{space 1}    2.97{col 47}{space 3}0.003{col 55}{space 4} .0174947{col 68}{space 3} .0857174
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2} .0979682{col 27}{space 2}  .017297{col 38}{space 1}    5.66{col 47}{space 3}0.000{col 55}{space 4} .0640668{col 68}{space 3} .1318696
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-.0220368{col 27}{space 2}  .019033{col 38}{space 1}   -1.16{col 47}{space 3}0.247{col 55}{space 4}-.0593408{col 68}{space 3} .0152672
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2} .0094279{col 27}{space 2} .0209748{col 38}{space 1}    0.45{col 47}{space 3}0.653{col 55}{space 4}-.0316821{col 68}{space 3} .0505378
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2} .0055851{col 27}{space 2} .0231926{col 38}{space 1}    0.24{col 47}{space 3}0.810{col 55}{space 4}-.0398715{col 68}{space 3} .0510418
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} .0616373{col 27}{space 2} .0383411{col 38}{space 1}    1.61{col 47}{space 3}0.108{col 55}{space 4}-.0135099{col 68}{space 3} .1367845
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |} {res} .06019771
      {txt}sigma_e {c |} {res} .31178869
          {txt}rho {c |} {res} .03593723{txt}   (fraction of variance due to u_i)
{hline 14}{c BT}{hline 64}
{p 0 16 33}Instrumented:{space 3}partyposyea{p_end}
{p 0 16 33}Instruments:{space 4}yeantdnpty yeadistmedian yeaaff ydum1 ydum2 ydum3 ydum4 ydum5 clintonyea demclintonyea demrep{p_end}
{hline 79}

{com}. 
. * S8. District safety, alternative specifications
. * Cook PVI, LPM re [1]
. xtreg libvote cookfavlibntdn libntdn cookfav cookfavdist distmedian aff demrep ydum1-ydum5 if distN>39, re
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     9,921
{txt}Group variable: {res}nameid                          {txt}Number of groups  = {res}       780

{txt}R-sq:                                           Obs per group:
     within  = {res}0.2071                                         {txt}min = {res}         2
{txt}     between = {res}0.8631                                         {txt}avg = {res}      12.7
{txt}     overall = {res}0.5972                                         {txt}max = {res}        26

                                                {txt}Wald chi2({res}12{txt})     =  {res}  9609.31
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       libvote{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      z{col 48}   P>|z|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cookfavlibntdn {c |}{col 16}{res}{space 2} .0195435{col 28}{space 2}  .001367{col 39}{space 1}   14.30{col 48}{space 3}0.000{col 56}{space 4} .0168642{col 69}{space 3} .0222227
{txt}{space 4}libntdnpty {c |}{col 16}{res}{space 2} .4829769{col 28}{space 2} .0253855{col 39}{space 1}   19.03{col 48}{space 3}0.000{col 56}{space 4} .4332222{col 69}{space 3} .5327316
{txt}{space 7}cookfav {c |}{col 16}{res}{space 2} .0069242{col 28}{space 2} .0011127{col 39}{space 1}    6.22{col 48}{space 3}0.000{col 56}{space 4} .0047434{col 69}{space 3}  .009105
{txt}{space 3}cookfavdist {c |}{col 16}{res}{space 2}-.0302108{col 28}{space 2}  .002008{col 39}{space 1}  -15.04{col 48}{space 3}0.000{col 56}{space 4}-.0341464{col 69}{space 3}-.0262751
{txt}{space 4}distmedian {c |}{col 16}{res}{space 2} .4155174{col 28}{space 2} .0360429{col 39}{space 1}   11.53{col 48}{space 3}0.000{col 56}{space 4} .3448746{col 69}{space 3} .4861602
{txt}{space 11}aff {c |}{col 16}{res}{space 2} -.046409{col 28}{space 2} .0326526{col 39}{space 1}   -1.42{col 48}{space 3}0.155{col 56}{space 4}-.1104069{col 69}{space 3} .0175889
{txt}{space 8}demrep {c |}{col 16}{res}{space 2} .3285761{col 28}{space 2} .0142805{col 39}{space 1}   23.01{col 48}{space 3}0.000{col 56}{space 4} .3005869{col 69}{space 3} .3565654
{txt}{space 9}ydum1 {c |}{col 16}{res}{space 2}-.1914729{col 28}{space 2} .0116987{col 39}{space 1}  -16.37{col 48}{space 3}0.000{col 56}{space 4}-.2144019{col 69}{space 3} -.168544
{txt}{space 9}ydum2 {c |}{col 16}{res}{space 2} -.116542{col 28}{space 2}  .012364{col 39}{space 1}   -9.43{col 48}{space 3}0.000{col 56}{space 4} -.140775{col 69}{space 3} -.092309
{txt}{space 9}ydum3 {c |}{col 16}{res}{space 2}-.1837004{col 28}{space 2} .0114047{col 39}{space 1}  -16.11{col 48}{space 3}0.000{col 56}{space 4}-.2060532{col 69}{space 3}-.1613477
{txt}{space 9}ydum4 {c |}{col 16}{res}{space 2}-.2589967{col 28}{space 2}  .012925{col 39}{space 1}  -20.04{col 48}{space 3}0.000{col 56}{space 4}-.2843293{col 69}{space 3}-.2336641
{txt}{space 9}ydum5 {c |}{col 16}{res}{space 2}-.1111666{col 28}{space 2} .0153964{col 39}{space 1}   -7.22{col 48}{space 3}0.000{col 56}{space 4} -.141343{col 69}{space 3}-.0809902
{txt}{space 9}_cons {c |}{col 16}{res}{space 2} .0365234{col 28}{space 2} .0217943{col 39}{space 1}    1.68{col 48}{space 3}0.094{col 56}{space 4}-.0061927{col 69}{space 3} .0792394
{txt}{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
       sigma_u {c |} {res} .06708193
       {txt}sigma_e {c |} {res} .30764998
           {txt}rho {c |} {res} .04538632{txt}   (fraction of variance due to u_i)
{hline 15}{c BT}{hline 64}

{com}. * Cook PVI LPM, redistricting (fe) [2]
. xtreg libvote cookfavlibntdn libntdnpty cookfav cookfavdist distmedian aff ydum1-ydum5 if (year==2010 | year==2012) & distN>39, fe
{p 0 6 2}{txt}note: ydum1 omitted because of collinearity{p_end}
{p 0 6 2}note: ydum2 omitted because of collinearity{p_end}
{p 0 6 2}note: ydum4 omitted because of collinearity{p_end}
{p 0 6 2}note: ydum5 omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}     3,148
{txt}Group variable: {res}nameid{txt}{col 49}Number of groups{col 67}={col 69}{res}       504

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0820{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.8807{col 63}{txt}avg{col 67}={col 69}{res}       6.2
{txt}     overall = {res}0.6456{col 63}{txt}max{col 67}={col 69}{res}         8

{txt}{col 49}F({res}7{txt},{res}2637{txt}){col 67}={col 70}{res}    33.65
{txt}corr(u_i, Xb){col 16}= {res}0.7922{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}       libvote{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
cookfavlibntdn {c |}{col 16}{res}{space 2} .0109211{col 28}{space 2}  .002983{col 39}{space 1}    3.66{col 48}{space 3}0.000{col 56}{space 4} .0050719{col 69}{space 3} .0167704
{txt}{space 4}libntdnpty {c |}{col 16}{res}{space 2} .2156679{col 28}{space 2} .0453922{col 39}{space 1}    4.75{col 48}{space 3}0.000{col 56}{space 4} .1266599{col 69}{space 3} .3046759
{txt}{space 7}cookfav {c |}{col 16}{res}{space 2} .0017482{col 28}{space 2} .0027851{col 39}{space 1}    0.63{col 48}{space 3}0.530{col 56}{space 4} -.003713{col 69}{space 3} .0072094
{txt}{space 3}cookfavdist {c |}{col 16}{res}{space 2}-.0155345{col 28}{space 2} .0036017{col 39}{space 1}   -4.31{col 48}{space 3}0.000{col 56}{space 4}-.0225969{col 69}{space 3}-.0084721
{txt}{space 4}distmedian {c |}{col 16}{res}{space 2}  .193723{col 28}{space 2}  .062629{col 39}{space 1}    3.09{col 48}{space 3}0.002{col 56}{space 4}  .070916{col 69}{space 3}   .31653
{txt}{space 11}aff {c |}{col 16}{res}{space 2} .0053734{col 28}{space 2} .0517175{col 39}{space 1}    0.10{col 48}{space 3}0.917{col 56}{space 4}-.0960375{col 69}{space 3} .1067844
{txt}{space 9}ydum1 {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{space 9}ydum2 {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{space 9}ydum3 {c |}{col 16}{res}{space 2} .0474932{col 28}{space 2} .0100988{col 39}{space 1}    4.70{col 48}{space 3}0.000{col 56}{space 4} .0276908{col 69}{space 3} .0672956
{txt}{space 9}ydum4 {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{space 9}ydum5 {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{space 9}_cons {c |}{col 16}{res}{space 2} .2483065{col 28}{space 2} .0384704{col 39}{space 1}    6.45{col 48}{space 3}0.000{col 56}{space 4} .1728713{col 69}{space 3} .3237416
{txt}{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
       sigma_u {c |} {res} .35515979
       {txt}sigma_e {c |} {res} .22489912
           {txt}rho {c |} {res} .71378362{txt}   (fraction of variance due to u_i)
{hline 15}{c BT}{hline 64}
F test that all u_i=0: F({res}503{txt}, {res}2637{txt}) = {res}3.51{col 62}{txt}Prob > F = {res}0.0000
{txt}
{com}. * Presidential vote (re) [3]
. xtlogit libvote pv00libntdn libntdnpty pv00 pv00distmed distmedian aff demrep ydum1-ydum5 if  distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -6840.513}  
Iteration 1:{space 3}log likelihood = {res:-3264.8227}  
Iteration 2:{space 3}log likelihood = {res:-3141.0023}  
Iteration 3:{space 3}log likelihood = {res:-3136.8399}  
Iteration 4:{space 3}log likelihood = {res:-3136.8274}  
Iteration 5:{space 3}log likelihood = {res:-3136.8274}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3136.8274
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3118.2417
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3111.4628
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3114.2659

{txt}Iteration 0:{space 3}log likelihood = {res:-3111.4629}  
Iteration 1:{space 3}log likelihood = {res:-3106.2826}  
Iteration 2:{space 3}log likelihood = {res:-3106.2111}  
Iteration 3:{space 3}log likelihood = {res: -3106.211}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       780

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}12{txt}){col 67}={col 70}{res}  2160.78
{txt}Log likelihood  = {res} -3106.211{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 1}pv00libntdn {c |}{col 14}{res}{space 2} .2632711{col 26}{space 2} .0164778{col 37}{space 1}   15.98{col 46}{space 3}0.000{col 54}{space 4} .2309753{col 67}{space 3} .2955669
{txt}{space 2}libntdnpty {c |}{col 14}{res}{space 2}-10.65132{col 26}{space 2} .9140227{col 37}{space 1}  -11.65{col 46}{space 3}0.000{col 54}{space 4}-12.44277{col 67}{space 3}-8.859867
{txt}{space 8}pv00 {c |}{col 14}{res}{space 2}-.0048526{col 26}{space 2} .0121635{col 37}{space 1}   -0.40{col 46}{space 3}0.690{col 54}{space 4}-.0286926{col 67}{space 3} .0189874
{txt}{space 1}pv00distmed {c |}{col 14}{res}{space 2}-.2146726{col 26}{space 2} .0222603{col 37}{space 1}   -9.64{col 46}{space 3}0.000{col 54}{space 4} -.258302{col 67}{space 3}-.1710433
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 13.30838{col 26}{space 2} 1.255542{col 37}{space 1}   10.60{col 46}{space 3}0.000{col 54}{space 4} 10.84756{col 67}{space 3}  15.7692
{txt}{space 9}aff {c |}{col 14}{res}{space 2} .6574248{col 26}{space 2} .3549825{col 37}{space 1}    1.85{col 46}{space 3}0.064{col 54}{space 4}-.0383282{col 67}{space 3} 1.353178
{txt}{space 6}demrep {c |}{col 14}{res}{space 2} 2.199112{col 26}{space 2} .1439298{col 37}{space 1}   15.28{col 46}{space 3}0.000{col 54}{space 4} 1.917015{col 67}{space 3} 2.481209
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2} -1.10966{col 26}{space 2} .1358635{col 37}{space 1}   -8.17{col 46}{space 3}0.000{col 54}{space 4}-1.375948{col 67}{space 3}-.8433727
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-.7382774{col 26}{space 2} .1421862{col 37}{space 1}   -5.19{col 46}{space 3}0.000{col 54}{space 4}-1.016957{col 67}{space 3}-.4595976
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-1.529536{col 26}{space 2} .1409274{col 37}{space 1}  -10.85{col 46}{space 3}0.000{col 54}{space 4}-1.805748{col 67}{space 3}-1.253323
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-1.918027{col 26}{space 2} .1486263{col 37}{space 1}  -12.91{col 46}{space 3}0.000{col 54}{space 4}-2.209329{col 67}{space 3}-1.626725
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-.4375198{col 26}{space 2} .1725287{col 37}{space 1}   -2.54{col 46}{space 3}0.011{col 54}{space 4}-.7756698{col 67}{space 3}-.0993697
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-2.903463{col 26}{space 2} .7148049{col 37}{space 1}   -4.06{col 46}{space 3}0.000{col 54}{space 4}-4.304455{col 67}{space 3}-1.502471
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}/lnsig2u {c |}{col 14}{res}{space 2}-1.005119{col 26}{space 2} .1869914{col 54}{space 4}-1.371615{col 67}{space 3} -.638622
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |}{col 14}{res}{space 2} .6049804{col 26}{space 2} .0565631{col 54}{space 4} .5036833{col 67}{space 3} .7266495
{txt}         rho {c |}{col 14}{res}{space 2} .1001133{col 26}{space 2} .0168462{col 54}{space 4} .0715937{col 67}{space 3} .1383015
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}61.23{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Presidential vote, redistricting (fe) [4]
. xtlogit libvote pv00libntdn libntdnpty pv00 pv00distmed distmedian aff ydum1-ydum5 if (year==2010 | year==2012) & distN>39, fe            
{txt}note: ydum1 omitted because of collinearity
note: ydum2 omitted because of collinearity
note: ydum4 omitted because of collinearity
note: ydum5 omitted because of collinearity
note: multiple positive outcomes within groups encountered.
note: 352 groups (2,126 obs) dropped because of all positive or
      all negative outcomes.
{res}
{txt}Iteration 0:{space 3}log likelihood = {res:-226.32508}  
Iteration 1:{space 3}log likelihood = {res:-218.18318}  
Iteration 2:{space 3}log likelihood = {res:-217.54307}  
Iteration 3:{space 3}log likelihood = {res:-217.54097}  
Iteration 4:{space 3}log likelihood = {res:-217.54097}  
{res}
{txt}Conditional fixed-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     1,022
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       152

{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         3
{txt}{col 63}avg{col 67}={col 69}{res}       6.7
{txt}{col 63}max{col 67}={col 69}{res}         8

{txt}{col 49}LR chi2({res}7{txt}){col 67}={col 70}{res}   200.03
{txt}Log likelihood  = {res}-217.54097{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 1}pv00libntdn {c |}{col 14}{res}{space 2} .3158447{col 26}{space 2} .0781192{col 37}{space 1}    4.04{col 46}{space 3}0.000{col 54}{space 4} .1627339{col 67}{space 3} .4689556
{txt}{space 2}libntdnpty {c |}{col 14}{res}{space 2} -11.8935{col 26}{space 2}  4.20765{col 37}{space 1}   -2.83{col 46}{space 3}0.005{col 54}{space 4}-20.14034{col 67}{space 3}-3.646659
{txt}{space 8}pv00 {c |}{col 14}{res}{space 2}-.0997654{col 26}{space 2} .0604393{col 37}{space 1}   -1.65{col 46}{space 3}0.099{col 54}{space 4}-.2182243{col 67}{space 3} .0186935
{txt}{space 1}pv00distmed {c |}{col 14}{res}{space 2}-.2668604{col 26}{space 2} .0890568{col 37}{space 1}   -3.00{col 46}{space 3}0.003{col 54}{space 4}-.4414085{col 67}{space 3}-.0923122
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 15.83959{col 26}{space 2} 4.597884{col 37}{space 1}    3.44{col 46}{space 3}0.001{col 54}{space 4} 6.827904{col 67}{space 3} 24.85128
{txt}{space 9}aff {c |}{col 14}{res}{space 2} -1.85888{col 26}{space 2} 1.295115{col 37}{space 1}   -1.44{col 46}{space 3}0.151{col 54}{space 4} -4.39726{col 67}{space 3} .6794995
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 7}ydum2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 7}ydum3 {c |}{col 14}{res}{space 2} .5894796{col 26}{space 2} .2783891{col 37}{space 1}    2.12{col 46}{space 3}0.034{col 54}{space 4}  .043847{col 67}{space 3} 1.135112
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 7}ydum5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. * Presidential vote LPM re [5]
. xtreg libvote pv00libntdn libntdnpty pv00 pv00distmed distmedian aff demrep ydum1-ydum5 if  distN>39, re
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     9,921
{txt}Group variable: {res}nameid                          {txt}Number of groups  = {res}       780

{txt}R-sq:                                           Obs per group:
     within  = {res}0.2065                                         {txt}min = {res}         2
{txt}     between = {res}0.8627                                         {txt}avg = {res}      12.7
{txt}     overall = {res}0.5971                                         {txt}max = {res}        26

                                                {txt}Wald chi2({res}12{txt})     =  {res}  9716.86
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 1}pv00libntdn {c |}{col 14}{res}{space 2} .0190795{col 26}{space 2} .0013422{col 37}{space 1}   14.21{col 46}{space 3}0.000{col 54}{space 4} .0164488{col 67}{space 3} .0217103
{txt}{space 2}libntdnpty {c |}{col 14}{res}{space 2}-.4654906{col 26}{space 2} .0811823{col 37}{space 1}   -5.73{col 46}{space 3}0.000{col 54}{space 4} -.624605{col 67}{space 3}-.3063762
{txt}{space 8}pv00 {c |}{col 14}{res}{space 2} .0070336{col 26}{space 2} .0011041{col 37}{space 1}    6.37{col 46}{space 3}0.000{col 54}{space 4} .0048696{col 67}{space 3} .0091975
{txt}{space 1}pv00distmed {c |}{col 14}{res}{space 2}-.0287429{col 26}{space 2} .0019887{col 37}{space 1}  -14.45{col 46}{space 3}0.000{col 54}{space 4}-.0326407{col 67}{space 3}-.0248451
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} 1.843541{col 26}{space 2} .1210699{col 37}{space 1}   15.23{col 46}{space 3}0.000{col 54}{space 4} 1.606249{col 67}{space 3} 2.080834
{txt}{space 9}aff {c |}{col 14}{res}{space 2}-.0543991{col 26}{space 2} .0326565{col 37}{space 1}   -1.67{col 46}{space 3}0.096{col 54}{space 4}-.1184046{col 67}{space 3} .0096064
{txt}{space 6}demrep {c |}{col 14}{res}{space 2} .3224088{col 26}{space 2} .0143817{col 37}{space 1}   22.42{col 46}{space 3}0.000{col 54}{space 4} .2942212{col 67}{space 3} .3505964
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}-.1782206{col 26}{space 2} .0117078{col 37}{space 1}  -15.22{col 46}{space 3}0.000{col 54}{space 4}-.2011674{col 67}{space 3}-.1552738
{txt}{space 7}ydum2 {c |}{col 14}{res}{space 2}-.1277337{col 26}{space 2} .0123158{col 37}{space 1}  -10.37{col 46}{space 3}0.000{col 54}{space 4}-.1518722{col 67}{space 3}-.1035952
{txt}{space 7}ydum3 {c |}{col 14}{res}{space 2}-.2014583{col 26}{space 2} .0113383{col 37}{space 1}  -17.77{col 46}{space 3}0.000{col 54}{space 4} -.223681{col 67}{space 3}-.1792355
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}-.2639991{col 26}{space 2} .0129019{col 37}{space 1}  -20.46{col 46}{space 3}0.000{col 54}{space 4}-.2892864{col 67}{space 3}-.2387117
{txt}{space 7}ydum5 {c |}{col 14}{res}{space 2}-.1157119{col 26}{space 2} .0153897{col 37}{space 1}   -7.52{col 46}{space 3}0.000{col 54}{space 4}-.1458752{col 67}{space 3}-.0855486
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.3164486{col 26}{space 2} .0689028{col 37}{space 1}   -4.59{col 46}{space 3}0.000{col 54}{space 4}-.4514956{col 67}{space 3}-.1814016
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |} {res}  .0656969
     {txt}sigma_e {c |} {res}  .3078389
         {txt}rho {c |} {res} .04356121{txt}   (fraction of variance due to u_i)
{hline 13}{c BT}{hline 64}

{com}. * Presidential vote LPM, redistricting (fe) [6]
. xtreg libvote pv00libntdn libntdnpty pv00 pv00distmed distmedian aff ydum1-ydum5 if (year==2010 | year==2012) & distN>39, fe 
{p 0 6 2}{txt}note: ydum1 omitted because of collinearity{p_end}
{p 0 6 2}note: ydum2 omitted because of collinearity{p_end}
{p 0 6 2}note: ydum4 omitted because of collinearity{p_end}
{p 0 6 2}note: ydum5 omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}     3,148
{txt}Group variable: {res}nameid{txt}{col 49}Number of groups{col 67}={col 69}{res}       504

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0816{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.8452{col 63}{txt}avg{col 67}={col 69}{res}       6.2
{txt}     overall = {res}0.6118{col 63}{txt}max{col 67}={col 69}{res}         8

{txt}{col 49}F({res}7{txt},{res}2637{txt}){col 67}={col 70}{res}    33.48
{txt}corr(u_i, Xb){col 16}= {res}0.7597{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     libvote{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 1}pv00libntdn {c |}{col 14}{res}{space 2} .0116441{col 26}{space 2} .0028557{col 37}{space 1}    4.08{col 46}{space 3}0.000{col 54}{space 4} .0060444{col 67}{space 3} .0172438
{txt}{space 2}libntdnpty {c |}{col 14}{res}{space 2}-.3781374{col 26}{space 2} .1748038{col 37}{space 1}   -2.16{col 46}{space 3}0.031{col 54}{space 4} -.720904{col 67}{space 3}-.0353709
{txt}{space 8}pv00 {c |}{col 14}{res}{space 2}-.0008788{col 26}{space 2} .0025892{col 37}{space 1}   -0.34{col 46}{space 3}0.734{col 54}{space 4}-.0059558{col 67}{space 3} .0041982
{txt}{space 1}pv00distmed {c |}{col 14}{res}{space 2}-.0128879{col 26}{space 2} .0035349{col 37}{space 1}   -3.65{col 46}{space 3}0.000{col 54}{space 4}-.0198194{col 67}{space 3}-.0059563
{txt}{space 2}distmedian {c |}{col 14}{res}{space 2} .8205519{col 26}{space 2} .2213882{col 37}{space 1}    3.71{col 46}{space 3}0.000{col 54}{space 4} .3864397{col 67}{space 3} 1.254664
{txt}{space 9}aff {c |}{col 14}{res}{space 2} .0026342{col 26}{space 2} .0518132{col 37}{space 1}    0.05{col 46}{space 3}0.959{col 54}{space 4}-.0989644{col 67}{space 3} .1042328
{txt}{space 7}ydum1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 7}ydum2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 7}ydum3 {c |}{col 14}{res}{space 2} .0372072{col 26}{space 2} .0103762{col 37}{space 1}    3.59{col 46}{space 3}0.000{col 54}{space 4}  .016861{col 67}{space 3} .0575534
{txt}{space 7}ydum4 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 7}ydum5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 7}_cons {c |}{col 14}{res}{space 2}  .313682{col 26}{space 2}  .159884{col 37}{space 1}    1.96{col 46}{space 3}0.050{col 54}{space 4} .0001711{col 67}{space 3} .6271928
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |} {res} .36202129
     {txt}sigma_e {c |} {res} .22494747
         {txt}rho {c |} {res} .72145135{txt}   (fraction of variance due to u_i)
{hline 13}{c BT}{hline 64}
F test that all u_i=0: F({res}503{txt}, {res}2637{txt}) = {res}3.48{col 62}{txt}Prob > F = {res}0.0000
{txt}
{com}. 
. * S9. Intrumenting for national donor opinion
. ivprobit libvote (libntdnpty=lagntldonor clintonlib demrepclintonlib) distmedian demrep aff ydum1-ydum5 if distN>39, first vce(cluster nameid)
{txt}note: ydum1 omitted because of collinearity
{res}
{txt}Fitting exogenous probit model

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-2136.7507}  
Iteration 1:{space 3}log likelihood = {res:-868.59896}  
Iteration 2:{space 3}log likelihood = {res:-843.51024}  
Iteration 3:{space 3}log likelihood = {res:-843.18154}  
Iteration 4:{space 3}log likelihood = {res:-843.18132}  
Iteration 5:{space 3}log likelihood = {res:-843.18132}  
{res}
{txt}Fitting full model

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res: 2665.7722}  
Iteration 1:{space 3}log pseudolikelihood = {res: 2665.7828}  
Iteration 2:{space 3}log pseudolikelihood = {res: 2665.7828}  

Probit model with endogenous regressors{col 49}Number of obs{col 67}= {res}     3,083
{txt}{col 49}Wald chi2({res}8{txt}){col 67}= {res}   1261.63
{txt}Log pseudolikelihood = {res} 2665.7828{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{ralign 94:(Std. Err. adjusted for {res:707} clusters in nameid)}
{hline 29}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 30}{c |}{col 42}    Robust
{col 30}{c |}      Coef.{col 42}   Std. Err.{col 54}      z{col 62}   P>|z|{col 70}     [95% Con{col 83}f. Interval]
{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}libvote                      {txt}{c |}
{space 18}libntdnpty {c |}{col 30}{res}{space 2} 2.481032{col 42}{space 2} .4042088{col 53}{space 1}    6.14{col 62}{space 3}0.000{col 70}{space 4} 1.688797{col 83}{space 3} 3.273267
{txt}{space 18}distmedian {c |}{col 30}{res}{space 2} 2.927241{col 42}{space 2} .3382291{col 53}{space 1}    8.65{col 62}{space 3}0.000{col 70}{space 4} 2.264324{col 83}{space 3} 3.590158
{txt}{space 22}demrep {c |}{col 30}{res}{space 2} 1.303202{col 42}{space 2} .2339617{col 53}{space 1}    5.57{col 62}{space 3}0.000{col 70}{space 4} .8446451{col 83}{space 3} 1.761758
{txt}{space 25}aff {c |}{col 30}{res}{space 2} .8593706{col 42}{space 2} .4797382{col 53}{space 1}    1.79{col 62}{space 3}0.073{col 70}{space 4} -.080899{col 83}{space 3}  1.79964
{txt}{space 23}ydum1 {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 23}ydum2 {c |}{col 30}{res}{space 2} -1.00303{col 42}{space 2} .1091429{col 53}{space 1}   -9.19{col 62}{space 3}0.000{col 70}{space 4}-1.216946{col 83}{space 3} -.789114
{txt}{space 23}ydum3 {c |}{col 30}{res}{space 2}-.8088792{col 42}{space 2} .1168689{col 53}{space 1}   -6.92{col 62}{space 3}0.000{col 70}{space 4}-1.037938{col 83}{space 3}-.5798203
{txt}{space 23}ydum4 {c |}{col 30}{res}{space 2}-.3811717{col 42}{space 2} .1077696{col 53}{space 1}   -3.54{col 62}{space 3}0.000{col 70}{space 4}-.5923962{col 83}{space 3}-.1699471
{txt}{space 23}ydum5 {c |}{col 30}{res}{space 2} .2336001{col 42}{space 2} .1102302{col 53}{space 1}    2.12{col 62}{space 3}0.034{col 70}{space 4} .0175527{col 83}{space 3} .4496474
{txt}{space 23}_cons {c |}{col 30}{res}{space 2}-3.463688{col 42}{space 2} .2349526{col 53}{space 1}  -14.74{col 62}{space 3}0.000{col 70}{space 4}-3.924187{col 83}{space 3} -3.00319
{txt}{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}libntdnpty                   {txt}{c |}
{space 18}distmedian {c |}{col 30}{res}{space 2} .1064177{col 42}{space 2} .0156186{col 53}{space 1}    6.81{col 62}{space 3}0.000{col 70}{space 4} .0758058{col 83}{space 3} .1370297
{txt}{space 22}demrep {c |}{col 30}{res}{space 2} .2431907{col 42}{space 2} .0040577{col 53}{space 1}   59.93{col 62}{space 3}0.000{col 70}{space 4} .2352378{col 83}{space 3} .2511436
{txt}{space 25}aff {c |}{col 30}{res}{space 2} .2187559{col 42}{space 2} .0085443{col 53}{space 1}   25.60{col 62}{space 3}0.000{col 70}{space 4} .2020094{col 83}{space 3} .2355023
{txt}{space 23}ydum1 {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 23}ydum2 {c |}{col 30}{res}{space 2} .0351613{col 42}{space 2} .0032868{col 53}{space 1}   10.70{col 62}{space 3}0.000{col 70}{space 4} .0287193{col 83}{space 3} .0416032
{txt}{space 23}ydum3 {c |}{col 30}{res}{space 2} .0702324{col 42}{space 2} .0027948{col 53}{space 1}   25.13{col 62}{space 3}0.000{col 70}{space 4} .0647546{col 83}{space 3} .0757101
{txt}{space 23}ydum4 {c |}{col 30}{res}{space 2}-.0156153{col 42}{space 2} .0092969{col 53}{space 1}   -1.68{col 62}{space 3}0.093{col 70}{space 4} -.033837{col 83}{space 3} .0026063
{txt}{space 23}ydum5 {c |}{col 30}{res}{space 2}-.0201993{col 42}{space 2} .0019923{col 53}{space 1}  -10.14{col 62}{space 3}0.000{col 70}{space 4}-.0241041{col 83}{space 3}-.0162944
{txt}{space 17}lagntldonor {c |}{col 30}{res}{space 2} .2420175{col 42}{space 2} .0081297{col 53}{space 1}   29.77{col 62}{space 3}0.000{col 70}{space 4} .2260836{col 83}{space 3} .2579514
{txt}{space 18}clintonlib {c |}{col 30}{res}{space 2}-.1599529{col 42}{space 2} .0063754{col 53}{space 1}  -25.09{col 62}{space 3}0.000{col 70}{space 4}-.1724485{col 83}{space 3}-.1474573
{txt}{space 12}demrepclintonlib {c |}{col 30}{res}{space 2} .3470406{col 42}{space 2} .0044835{col 53}{space 1}   77.40{col 62}{space 3}0.000{col 70}{space 4} .3382531{col 83}{space 3} .3558282
{txt}{space 23}_cons {c |}{col 30}{res}{space 2} .0636251{col 42}{space 2} .0090822{col 53}{space 1}    7.01{col 62}{space 3}0.000{col 70}{space 4} .0458244{col 83}{space 3} .0814259
{txt}{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 18}/athrho2_1 {c |}{col 30}{res}{space 2} .0292491{col 42}{space 2} .0442724{col 53}{space 1}    0.66{col 62}{space 3}0.509{col 70}{space 4}-.0575232{col 83}{space 3} .1160213
{txt}{space 19}/lnsigma2 {c |}{col 30}{res}{space 2}-2.557104{col 42}{space 2} .0083788{col 53}{space 1} -305.19{col 62}{space 3}0.000{col 70}{space 4}-2.573526{col 83}{space 3}-2.540681
{txt}{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
 corr(e.libntdnpty,e.libvote){c |}{col 30}{res}{space 2} .0292407{col 42}{space 2} .0442345{col 70}{space 4}-.0574598{col 83}{space 3} .1155035
{txt}             sd(e.libntdnpty){c |}{col 30}{res}{space 2}  .077529{col 42}{space 2} .0006496{col 70}{space 4} .0762662{col 83}{space 3} .0788127
{txt}{hline 29}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 15 20}Instrumented:{space 2}libntdnpty{p_end}
{p 0 15 20}Instruments:{space 3}distmedian demrep aff ydum2 ydum3 ydum4 ydum5 lagntldonor clintonlib demrepclintonlib{p_end}
{hline 94}
Wald test of exogeneity (corr = 0): chi2({res}1{txt}) = {res}0.44{txt}{col 59}Prob > chi2 = {res}0.5088
{txt}
{com}. *Haumsan test
. xtreg yeavote partyposyea yeantdnpty yeadistmedian yeaaff ydum1-ydum5 if distN>39,  re
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     9,921
{txt}Group variable: {res}nameid                          {txt}Number of groups  = {res}       780

{txt}R-sq:                                           Obs per group:
     within  = {res}0.5838                                         {txt}min = {res}         2
{txt}     between = {res}0.4667                                         {txt}avg = {res}      12.7
{txt}     overall = {res}0.5800                                         {txt}max = {res}        26

                                                {txt}Wald chi2({res}9{txt})      =  {res} 13648.12
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      yeavote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}partyposyea {c |}{col 15}{res}{space 2} .4703169{col 27}{space 2} .0155662{col 38}{space 1}   30.21{col 47}{space 3}0.000{col 55}{space 4} .4398077{col 68}{space 3} .5008262
{txt}{space 3}yeantdnpty {c |}{col 15}{res}{space 2}   .47631{col 27}{space 2} .0255442{col 38}{space 1}   18.65{col 47}{space 3}0.000{col 55}{space 4} .4262443{col 68}{space 3} .5263758
{txt}yeadistmedian {c |}{col 15}{res}{space 2} .1237897{col 27}{space 2} .0277486{col 38}{space 1}    4.46{col 47}{space 3}0.000{col 55}{space 4} .0694034{col 68}{space 3} .1781759
{txt}{space 7}yeaaff {c |}{col 15}{res}{space 2}-.2384713{col 27}{space 2} .0358646{col 38}{space 1}   -6.65{col 47}{space 3}0.000{col 55}{space 4}-.3087647{col 68}{space 3} -.168178
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2} .0302219{col 27}{space 2} .0117855{col 38}{space 1}    2.56{col 47}{space 3}0.010{col 55}{space 4} .0071227{col 68}{space 3} .0533211
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2} .0780453{col 27}{space 2} .0120612{col 38}{space 1}    6.47{col 47}{space 3}0.000{col 55}{space 4} .0544058{col 68}{space 3} .1016849
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-.0452027{col 27}{space 2} .0120863{col 38}{space 1}   -3.74{col 47}{space 3}0.000{col 55}{space 4}-.0688914{col 68}{space 3}-.0215139
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2}-.0115062{col 27}{space 2} .0163428{col 38}{space 1}   -0.70{col 47}{space 3}0.481{col 55}{space 4}-.0435375{col 68}{space 3} .0205251
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2}-.0187913{col 27}{space 2} .0171219{col 38}{space 1}   -1.10{col 47}{space 3}0.272{col 55}{space 4}-.0523496{col 68}{space 3} .0147669
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} .1091936{col 27}{space 2} .0240331{col 38}{space 1}    4.54{col 47}{space 3}0.000{col 55}{space 4} .0620895{col 68}{space 3} .1562977
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |} {res} .06943323
      {txt}sigma_e {c |} {res} .31114731
          {txt}rho {c |} {res} .04743482{txt}   (fraction of variance due to u_i)
{hline 14}{c BT}{hline 64}

{com}. estimates store iv
{txt}
{com}. xtivreg yeavote (partyposyea = clintonyea demclintonyea demrep) yeantdnpty yeadistmedian yeaaff ydum1-ydum5 if distN>39, first re
{res}
{txt}First-stage G2SLS regression
{col 50}Number of obs{col 67}={res}{col 69}     9,921
{col 50}{txt}Wald chi({res}11{txt}){col 67}={res}{col 71}   51455
{col 50}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  partyposyea{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}yeantdnpty {c |}{col 15}{res}{space 2} 1.512321{col 27}{space 2} .0074979{col 38}{space 1}  201.70{col 47}{space 3}0.000{col 55}{space 4} 1.497625{col 68}{space 3} 1.527017
{txt}yeadistmedian {c |}{col 15}{res}{space 2} -.430006{col 27}{space 2} .0168009{col 38}{space 1}  -25.59{col 47}{space 3}0.000{col 55}{space 4}-.4629352{col 68}{space 3}-.3970768
{txt}{space 7}yeaaff {c |}{col 15}{res}{space 2}-.6383296{col 27}{space 2} .0223643{col 38}{space 1}  -28.54{col 47}{space 3}0.000{col 55}{space 4}-.6821628{col 68}{space 3}-.5944964
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}-.2336015{col 27}{space 2} .0069859{col 38}{space 1}  -33.44{col 47}{space 3}0.000{col 55}{space 4}-.2472937{col 68}{space 3}-.2199093
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2}-.2365624{col 27}{space 2}  .007684{col 38}{space 1}  -30.79{col 47}{space 3}0.000{col 55}{space 4}-.2516228{col 68}{space 3} -.221502
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2} -.273914{col 27}{space 2} .0070919{col 38}{space 1}  -38.62{col 47}{space 3}0.000{col 55}{space 4}-.2878138{col 68}{space 3}-.2600142
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2}-.2223407{col 27}{space 2} .0100151{col 38}{space 1}  -22.20{col 47}{space 3}0.000{col 55}{space 4}  -.24197{col 68}{space 3}-.2027115
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2} -.289834{col 27}{space 2} .0103251{col 38}{space 1}  -28.07{col 47}{space 3}0.000{col 55}{space 4}-.3100709{col 68}{space 3}-.2695972
{txt}{space 3}clintonyea {c |}{col 15}{res}{space 2}-.1438378{col 27}{space 2} .0065907{col 38}{space 1}  -21.82{col 47}{space 3}0.000{col 55}{space 4}-.1567554{col 68}{space 3}-.1309202
{txt}demclintonyea {c |}{col 15}{res}{space 2} .0591181{col 27}{space 2} .0100931{col 38}{space 1}    5.86{col 47}{space 3}0.000{col 55}{space 4}  .039336{col 68}{space 3} .0789002
{txt}{space 7}demrep {c |}{col 15}{res}{space 2} .0083926{col 27}{space 2} .0071819{col 38}{space 1}    1.17{col 47}{space 3}0.243{col 55}{space 4}-.0056836{col 68}{space 3} .0224689
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} .6079216{col 27}{space 2} .0149109{col 38}{space 1}   40.77{col 47}{space 3}0.000{col 55}{space 4} .5786968{col 68}{space 3} .6371464
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}G2SLS random-effects IV regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{txt}{col 49}Number of groups{col 67}={col 69}{res}       780

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.5821{col 63}{txt}min{col 67}={col 69}{res}         2
{txt}     between = {res}0.4683{col 63}{txt}avg{col 67}={col 69}{res}      12.7
{txt}     overall = {res}0.5791{col 63}{txt}max{col 67}={col 69}{res}        26

{txt}{col 49}Wald chi2({res}9{txt}){col 67}={col 70}{res} 12790.68
{txt}corr(u_i, X){col 20}= {res}0{txt} (assumed){col 49}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      yeavote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}partyposyea {c |}{col 15}{res}{space 2} .5580101{col 27}{space 2} .0578116{col 38}{space 1}    9.65{col 47}{space 3}0.000{col 55}{space 4} .4447014{col 68}{space 3} .6713188
{txt}{space 3}yeantdnpty {c |}{col 15}{res}{space 2} .3456409{col 27}{space 2} .0856722{col 38}{space 1}    4.03{col 47}{space 3}0.000{col 55}{space 4} .1777263{col 68}{space 3} .5135554
{txt}yeadistmedian {c |}{col 15}{res}{space 2} .1677702{col 27}{space 2}  .037915{col 38}{space 1}    4.42{col 47}{space 3}0.000{col 55}{space 4} .0934582{col 68}{space 3} .2420821
{txt}{space 7}yeaaff {c |}{col 15}{res}{space 2}-.1926878{col 27}{space 2} .0467967{col 38}{space 1}   -4.12{col 47}{space 3}0.000{col 55}{space 4}-.2844077{col 68}{space 3}-.1009679
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}  .051606{col 27}{space 2} .0174041{col 38}{space 1}    2.97{col 47}{space 3}0.003{col 55}{space 4} .0174947{col 68}{space 3} .0857174
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2} .0979682{col 27}{space 2}  .017297{col 38}{space 1}    5.66{col 47}{space 3}0.000{col 55}{space 4} .0640668{col 68}{space 3} .1318696
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-.0220368{col 27}{space 2}  .019033{col 38}{space 1}   -1.16{col 47}{space 3}0.247{col 55}{space 4}-.0593408{col 68}{space 3} .0152672
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2} .0094279{col 27}{space 2} .0209748{col 38}{space 1}    0.45{col 47}{space 3}0.653{col 55}{space 4}-.0316821{col 68}{space 3} .0505378
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2} .0055851{col 27}{space 2} .0231926{col 38}{space 1}    0.24{col 47}{space 3}0.810{col 55}{space 4}-.0398715{col 68}{space 3} .0510418
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} .0616373{col 27}{space 2} .0383411{col 38}{space 1}    1.61{col 47}{space 3}0.108{col 55}{space 4}-.0135099{col 68}{space 3} .1367845
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |} {res} .06019771
      {txt}sigma_e {c |} {res} .31178869
          {txt}rho {c |} {res} .03593723{txt}   (fraction of variance due to u_i)
{hline 14}{c BT}{hline 64}
{p 0 16 33}Instrumented:{space 3}partyposyea{p_end}
{p 0 16 33}Instruments:{space 4}yeantdnpty yeadistmedian yeaaff ydum1 ydum2 ydum3 ydum4 ydum5 clintonyea demclintonyea demrep{p_end}
{hline 79}

{com}. hausman iv

{txt}{col 18}{hline 4} Coefficients {hline 4}
{col 14}{c |}{col 21}(b){col 34}(B){col 49}(b-B){col 59}sqrt(diag(V_b-V_B))
{col 14}{c |}{col 17}     iv     {col 30}     .      {col 46}Difference{col 66}S.E.
{hline 13}{c +}{hline 64}
{space 1}partyposyea {c |}{res}{col 18} .4703169{col 31} .5580101{col 47}-.0876931{col 63}        .
{txt}{space 2}yeantdnpty {c |}{res}{col 18}   .47631{col 31} .3456409{col 47} .1306692{col 63}        .
{txt}yeadistmed~n {c |}{res}{col 18} .1237897{col 31} .1677702{col 47}-.0439805{col 63}        .
{txt}{space 6}yeaaff {c |}{res}{col 18}-.2384713{col 31}-.1926878{col 47}-.0457835{col 63}        .
{txt}{space 7}ydum1 {c |}{res}{col 18} .0302219{col 31}  .051606{col 47}-.0213841{col 63}        .
{txt}{space 7}ydum2 {c |}{res}{col 18} .0780453{col 31} .0979682{col 47}-.0199228{col 63}        .
{txt}{space 7}ydum3 {c |}{res}{col 18}-.0452027{col 31}-.0220368{col 47}-.0231659{col 63}        .
{txt}{space 7}ydum4 {c |}{res}{col 18}-.0115062{col 31} .0094279{col 47} -.020934{col 63}        .
{txt}{space 7}ydum5 {c |}{res}{col 18}-.0187913{col 31} .0055851{col 47}-.0243764{col 63}        .
{txt}{hline 13}{c BT}{hline 64}
{ralign 78:b = consistent under Ho and Ha; obtained from xtreg}
{ralign 78:B = inconsistent under Ha, efficient under Ho; obtained from xtivreg}

    Test:  Ho:  difference in coefficients not systematic

{ralign 25:chi2({res:9})} = (b-B)'[(V_b-V_B)^(-1)](b-B)
{col 27}=  {res}      2.03
{txt}{col 17}Prob>chi2 =  {res}    0.9910
{txt}{col 17}(V_b-V_B is not positive definite)

{com}. *Woolridge test for endogeneity (see his 2010 MIT Press book)
. reg partyposyea clintonyea demclintonyea demrep yeantdnpty yeadistmedian yeaaff ydum1-ydum5 if distN>39

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}    10,154
{txt}{hline 13}{c +}{hline 34}   F(11, 10142)    = {res}  5055.01
{txt}       Model {c |} {res} 2088.28582        11  189.844165   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 380.889679    10,142  .037555677   {txt}R-squared       ={res}    0.8457
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.8456
{txt}       Total {c |} {res}  2469.1755    10,153  .243196641   {txt}Root MSE        =   {res} .19379

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}  partyposyea{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      t{col 47}   P>|t|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}clintonyea {c |}{col 15}{res}{space 2}-.1449858{col 27}{space 2}  .006477{col 38}{space 1}  -22.38{col 47}{space 3}0.000{col 55}{space 4} -.157682{col 68}{space 3}-.1322895
{txt}demclintonyea {c |}{col 15}{res}{space 2} .0595686{col 27}{space 2}   .00995{col 38}{space 1}    5.99{col 47}{space 3}0.000{col 55}{space 4} .0400646{col 68}{space 3} .0790726
{txt}{space 7}demrep {c |}{col 15}{res}{space 2} .0082229{col 27}{space 2} .0064282{col 38}{space 1}    1.28{col 47}{space 3}0.201{col 55}{space 4}-.0043778{col 68}{space 3} .0208235
{txt}{space 3}yeantdnpty {c |}{col 15}{res}{space 2} 1.510452{col 27}{space 2} .0073596{col 38}{space 1}  205.24{col 47}{space 3}0.000{col 55}{space 4} 1.496026{col 68}{space 3} 1.524879
{txt}yeadistmedian {c |}{col 15}{res}{space 2}-.4135672{col 27}{space 2} .0163983{col 38}{space 1}  -25.22{col 47}{space 3}0.000{col 55}{space 4} -.445711{col 68}{space 3}-.3814233
{txt}{space 7}yeaaff {c |}{col 15}{res}{space 2}-.6491025{col 27}{space 2} .0220092{col 38}{space 1}  -29.49{col 47}{space 3}0.000{col 55}{space 4}-.6922448{col 68}{space 3}-.6059601
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2}-.2325264{col 27}{space 2} .0066192{col 38}{space 1}  -35.13{col 47}{space 3}0.000{col 55}{space 4}-.2455014{col 68}{space 3}-.2195514
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2}-.2360376{col 27}{space 2}  .007367{col 38}{space 1}  -32.04{col 47}{space 3}0.000{col 55}{space 4}-.2504785{col 68}{space 3}-.2215968
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-.2738936{col 27}{space 2} .0068176{col 38}{space 1}  -40.17{col 47}{space 3}0.000{col 55}{space 4}-.2872574{col 68}{space 3}-.2605298
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2}-.2210944{col 27}{space 2} .0098229{col 38}{space 1}  -22.51{col 47}{space 3}0.000{col 55}{space 4}-.2403493{col 68}{space 3}-.2018395
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2}-.2885292{col 27}{space 2}  .010158{col 38}{space 1}  -28.40{col 47}{space 3}0.000{col 55}{space 4} -.308441{col 68}{space 3}-.2686174
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} .6059403{col 27}{space 2}  .014617{col 38}{space 1}   41.45{col 47}{space 3}0.000{col 55}{space 4} .5772881{col 68}{space 3} .6345926
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. predict vhat2, resid
{txt}
{com}. xtreg yeavote vhat2 partyposyea yeantdnpty yeadistmedian yeaaff ydum1-ydum5 if distN>39, re
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     9,921
{txt}Group variable: {res}nameid                          {txt}Number of groups  = {res}       780

{txt}R-sq:                                           Obs per group:
     within  = {res}0.5840                                         {txt}min = {res}         2
{txt}     between = {res}0.4668                                         {txt}avg = {res}      12.7
{txt}     overall = {res}0.5801                                         {txt}max = {res}        26

                                                {txt}Wald chi2({res}10{txt})     =  {res} 13652.68
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      yeavote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}vhat2 {c |}{col 15}{res}{space 2}-.0937994{col 27}{space 2} .0594263{col 38}{space 1}   -1.58{col 47}{space 3}0.114{col 55}{space 4}-.2102729{col 68}{space 3}  .022674
{txt}{space 2}partyposyea {c |}{col 15}{res}{space 2} .5572386{col 27}{space 2} .0572322{col 38}{space 1}    9.74{col 47}{space 3}0.000{col 55}{space 4} .4450655{col 68}{space 3} .6694117
{txt}{space 3}yeantdnpty {c |}{col 15}{res}{space 2} .3489191{col 27}{space 2} .0846756{col 38}{space 1}    4.12{col 47}{space 3}0.000{col 55}{space 4}  .182958{col 68}{space 3} .5148802
{txt}yeadistmedian {c |}{col 15}{res}{space 2} .1624721{col 27}{space 2} .0370385{col 38}{space 1}    4.39{col 47}{space 3}0.000{col 55}{space 4} .0898778{col 68}{space 3} .2350663
{txt}{space 7}yeaaff {c |}{col 15}{res}{space 2}-.1909182{col 27}{space 2} .0468322{col 38}{space 1}   -4.08{col 47}{space 3}0.000{col 55}{space 4}-.2827075{col 68}{space 3}-.0991288
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2} .0502093{col 27}{space 2} .0173065{col 38}{space 1}    2.90{col 47}{space 3}0.004{col 55}{space 4} .0162891{col 68}{space 3} .0841294
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2} .0974255{col 27}{space 2} .0172141{col 38}{space 1}    5.66{col 47}{space 3}0.000{col 55}{space 4} .0636864{col 68}{space 3} .1311646
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-.0221901{col 27}{space 2} .0189389{col 38}{space 1}   -1.17{col 47}{space 3}0.241{col 55}{space 4}-.0593095{col 68}{space 3} .0149294
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2} .0088338{col 27}{space 2} .0208134{col 38}{space 1}    0.42{col 47}{space 3}0.671{col 55}{space 4}-.0319598{col 68}{space 3} .0496274
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2} .0054029{col 27}{space 2} .0229797{col 38}{space 1}    0.24{col 47}{space 3}0.814{col 55}{space 4}-.0396366{col 68}{space 3} .0504423
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} .0628683{col 27}{space 2} .0379385{col 38}{space 1}    1.66{col 47}{space 3}0.097{col 55}{space 4}-.0114898{col 68}{space 3} .1372264
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |} {res} .06954311
      {txt}sigma_e {c |} {res} .31111962
          {txt}rho {c |} {res}   .047586{txt}   (fraction of variance due to u_i)
{hline 14}{c BT}{hline 64}

{com}. *insignificance of vhat2 suggests partyposyea is not endogenous
. 
. * S11. Member wealth 
. * Member wealth [1]
. xtlogit libvote wealthlibntdn libntdn wealth distmedian aff demrep ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-6829.6311}  
Iteration 1:{space 3}log likelihood = {res:-3424.9444}  
Iteration 2:{space 3}log likelihood = {res:-3371.9313}  
Iteration 3:{space 3}log likelihood = {res:-3371.6223}  
Iteration 4:{space 3}log likelihood = {res:-3371.6222}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3371.6222
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3321.6436
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3289.4487
{txt}tau = {res} 0.3     {txt}log likelihood = {res} -3271.651
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-3266.1436
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-3272.5432

{txt}Iteration 0:{space 3}log likelihood = {res:-3266.1579}  
Iteration 1:{space 3}log likelihood = {res:-3242.4587}  
Iteration 2:{space 3}log likelihood = {res:-3242.2687}  
Iteration 3:{space 3}log likelihood = {res:-3242.2685}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,906
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       779

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}11{txt}){col 67}={col 70}{res}  1897.03
{txt}Log likelihood  = {res}-3242.2685{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      libvote{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
wealthlibntdn {c |}{col 15}{res}{space 2} -.003566{col 27}{space 2} .0050305{col 38}{space 1}   -0.71{col 47}{space 3}0.478{col 55}{space 4}-.0134257{col 68}{space 3} .0062937
{txt}{space 3}libntdnpty {c |}{col 15}{res}{space 2}  4.08975{col 27}{space 2}   .25346{col 38}{space 1}   16.14{col 47}{space 3}0.000{col 55}{space 4} 3.592978{col 68}{space 3} 4.586523
{txt}{space 7}wealth {c |}{col 15}{res}{space 2} .0025343{col 27}{space 2}  .002968{col 38}{space 1}    0.85{col 47}{space 3}0.393{col 55}{space 4} -.003283{col 68}{space 3} .0083515
{txt}{space 3}distmedian {c |}{col 15}{res}{space 2} 2.234408{col 27}{space 2} .3346545{col 38}{space 1}    6.68{col 47}{space 3}0.000{col 55}{space 4} 1.578497{col 68}{space 3} 2.890319
{txt}{space 10}aff {c |}{col 15}{res}{space 2} .2382545{col 27}{space 2} .3533116{col 38}{space 1}    0.67{col 47}{space 3}0.500{col 55}{space 4}-.4542235{col 68}{space 3} .9307325
{txt}{space 7}demrep {c |}{col 15}{res}{space 2} 2.453283{col 27}{space 2} .1569443{col 38}{space 1}   15.63{col 47}{space 3}0.000{col 55}{space 4} 2.145678{col 68}{space 3} 2.760889
{txt}{space 8}ydum1 {c |}{col 15}{res}{space 2} -1.60311{col 27}{space 2} .1390743{col 38}{space 1}  -11.53{col 47}{space 3}0.000{col 55}{space 4} -1.87569{col 68}{space 3}-1.330529
{txt}{space 8}ydum2 {c |}{col 15}{res}{space 2}-.8845345{col 27}{space 2} .1452824{col 38}{space 1}   -6.09{col 47}{space 3}0.000{col 55}{space 4}-1.169283{col 68}{space 3}-.5997863
{txt}{space 8}ydum3 {c |}{col 15}{res}{space 2}-1.733487{col 27}{space 2} .1424277{col 38}{space 1}  -12.17{col 47}{space 3}0.000{col 55}{space 4} -2.01264{col 68}{space 3}-1.454333
{txt}{space 8}ydum4 {c |}{col 15}{res}{space 2}-2.202489{col 27}{space 2}  .151175{col 38}{space 1}  -14.57{col 47}{space 3}0.000{col 55}{space 4}-2.498787{col 68}{space 3}-1.906192
{txt}{space 8}ydum5 {c |}{col 15}{res}{space 2}-.5953049{col 27}{space 2} .1729949{col 38}{space 1}   -3.44{col 47}{space 3}0.001{col 55}{space 4}-.9343687{col 68}{space 3}-.2562411
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}-3.371269{col 27}{space 2} .2191565{col 38}{space 1}  -15.38{col 47}{space 3}0.000{col 55}{space 4}-3.800808{col 68}{space 3} -2.94173
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}/lnsig2u {c |}{col 15}{res}{space 2}-.0589191{col 27}{space 2} .1198516{col 55}{space 4}-.2938238{col 68}{space 3} .1759857
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
      sigma_u {c |}{col 15}{res}{space 2} .9709702{col 27}{space 2} .0581861{col 55}{space 4}   .86337{col 68}{space 3}  1.09198
{txt}          rho {c |}{col 15}{res}{space 2} .2227405{col 27}{space 2} .0207496{col 55}{space 4} .1847229{col 68}{space 3} .2660295
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}258.71{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Member wealth, top 10% [2]
. xtlogit libvote wealth10libntdn libntdn wealth10 distmedian aff demrep ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-6812.9043}  
Iteration 1:{space 3}log likelihood = {res:-3415.5511}  
Iteration 2:{space 3}log likelihood = {res:-3362.2893}  
Iteration 3:{space 3}log likelihood = {res:-3361.9747}  
Iteration 4:{space 3}log likelihood = {res:-3361.9747}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3361.9747
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3312.0449
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3279.8304
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3261.9669
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-3256.3696
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-3262.6714

{txt}Iteration 0:{space 3}log likelihood = {res: -3256.382}  
Iteration 1:{space 3}log likelihood = {res: -3232.826}  
Iteration 2:{space 3}log likelihood = {res:-3232.6401}  
Iteration 3:{space 3}log likelihood = {res:  -3232.64}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,884
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       778

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}11{txt}){col 67}={col 70}{res}  1894.25
{txt}Log likelihood  = {res}  -3232.64{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        libvote{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
wealth10libntdn {c |}{col 17}{res}{space 2}-.2411546{col 29}{space 2} .4726876{col 40}{space 1}   -0.51{col 49}{space 3}0.610{col 57}{space 4}-1.167605{col 70}{space 3} .6852961
{txt}{space 5}libntdnpty {c |}{col 17}{res}{space 2}  4.09297{col 29}{space 2} .2566763{col 40}{space 1}   15.95{col 49}{space 3}0.000{col 57}{space 4} 3.589893{col 70}{space 3} 4.596046
{txt}{space 7}wealth10 {c |}{col 17}{res}{space 2} .2893677{col 29}{space 2} .2831533{col 40}{space 1}    1.02{col 49}{space 3}0.307{col 57}{space 4}-.2656026{col 70}{space 3}  .844338
{txt}{space 5}distmedian {c |}{col 17}{res}{space 2} 2.275343{col 29}{space 2} .3350926{col 40}{space 1}    6.79{col 49}{space 3}0.000{col 57}{space 4} 1.618574{col 70}{space 3} 2.932113
{txt}{space 12}aff {c |}{col 17}{res}{space 2} .1969106{col 29}{space 2} .3539207{col 40}{space 1}    0.56{col 49}{space 3}0.578{col 57}{space 4}-.4967613{col 70}{space 3} .8905824
{txt}{space 9}demrep {c |}{col 17}{res}{space 2} 2.457848{col 29}{space 2} .1572825{col 40}{space 1}   15.63{col 49}{space 3}0.000{col 57}{space 4}  2.14958{col 70}{space 3} 2.766116
{txt}{space 10}ydum1 {c |}{col 17}{res}{space 2}-1.606874{col 29}{space 2} .1392436{col 40}{space 1}  -11.54{col 49}{space 3}0.000{col 57}{space 4}-1.879786{col 70}{space 3}-1.333962
{txt}{space 10}ydum2 {c |}{col 17}{res}{space 2}-.8915894{col 29}{space 2} .1455789{col 40}{space 1}   -6.12{col 49}{space 3}0.000{col 57}{space 4}-1.176919{col 70}{space 3}  -.60626
{txt}{space 10}ydum3 {c |}{col 17}{res}{space 2}-1.731892{col 29}{space 2} .1426485{col 40}{space 1}  -12.14{col 49}{space 3}0.000{col 57}{space 4}-2.011478{col 70}{space 3}-1.452306
{txt}{space 10}ydum4 {c |}{col 17}{res}{space 2}-2.202568{col 29}{space 2}  .151351{col 40}{space 1}  -14.55{col 49}{space 3}0.000{col 57}{space 4}-2.499211{col 70}{space 3}-1.905925
{txt}{space 10}ydum5 {c |}{col 17}{res}{space 2}  -.60552{col 29}{space 2} .1733622{col 40}{space 1}   -3.49{col 49}{space 3}0.000{col 57}{space 4}-.9453037{col 70}{space 3}-.2657363
{txt}{space 10}_cons {c |}{col 17}{res}{space 2} -3.38604{col 29}{space 2}  .221092{col 40}{space 1}  -15.32{col 49}{space 3}0.000{col 57}{space 4}-3.819372{col 70}{space 3}-2.952707
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}/lnsig2u {c |}{col 17}{res}{space 2}-.0575503{col 29}{space 2} .1198361{col 57}{space 4}-.2924246{col 70}{space 3} .1773241
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        sigma_u {c |}{col 17}{res}{space 2} .9716349{col 29}{space 2} .0582185{col 57}{space 4} .8639742{col 70}{space 3} 1.092711
{txt}            rho {c |}{col 17}{res}{space 2} .2229776{col 29}{space 2} .0207626{col 57}{space 4} .1849337{col 70}{space 3} .2662909
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}258.67{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. 
. * S12. Committee chairs and legislative voting
. * Baseline model [1]
. xtlogit libvote libntdnpty distmedian demrep aff lagchair lagchairlibntdn ydum1-ydum5 if distN>39, re

{txt}Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res: -6840.513}  
Iteration 1:{space 3}log likelihood = {res:-3426.7584}  
Iteration 2:{space 3}log likelihood = {res: -3373.063}  
Iteration 3:{space 3}log likelihood = {res:-3372.7322}  
Iteration 4:{space 3}log likelihood = {res:-3372.7321}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-3372.7321
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-3322.7443
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-3290.5575
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-3272.8075
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-3267.3817
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-3273.9583

{txt}Iteration 0:{space 3}log likelihood = {res: -3267.402}  
Iteration 1:{space 3}log likelihood = {res:-3244.5091}  
Iteration 2:{space 3}log likelihood = {res:-3244.3353}  
Iteration 3:{space 3}log likelihood = {res:-3244.3352}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     9,921
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       780

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      12.7
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}11{txt}){col 67}={col 70}{res}  1912.96
{txt}Log likelihood  = {res}-3244.3352{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        libvote{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}libntdnpty {c |}{col 17}{res}{space 2} 4.015238{col 29}{space 2} .2520362{col 40}{space 1}   15.93{col 49}{space 3}0.000{col 57}{space 4} 3.521256{col 70}{space 3} 4.509219
{txt}{space 5}distmedian {c |}{col 17}{res}{space 2} 2.237811{col 29}{space 2} .3344077{col 40}{space 1}    6.69{col 49}{space 3}0.000{col 57}{space 4} 1.582384{col 70}{space 3} 2.893238
{txt}{space 9}demrep {c |}{col 17}{res}{space 2} 2.473719{col 29}{space 2} .1565049{col 40}{space 1}   15.81{col 49}{space 3}0.000{col 57}{space 4} 2.166974{col 70}{space 3} 2.780463
{txt}{space 12}aff {c |}{col 17}{res}{space 2}  .274255{col 29}{space 2} .3525419{col 40}{space 1}    0.78{col 49}{space 3}0.437{col 57}{space 4}-.4167144{col 70}{space 3} .9652245
{txt}{space 7}lagchair {c |}{col 17}{res}{space 2} .3065709{col 29}{space 2} .3474454{col 40}{space 1}    0.88{col 49}{space 3}0.378{col 57}{space 4}-.3744096{col 70}{space 3} .9875514
{txt}lagchairlibntdn {c |}{col 17}{res}{space 2} .4922184{col 29}{space 2} .6384692{col 40}{space 1}    0.77{col 49}{space 3}0.441{col 57}{space 4}-.7591583{col 70}{space 3} 1.743595
{txt}{space 10}ydum1 {c |}{col 17}{res}{space 2}-1.570317{col 29}{space 2} .1386528{col 40}{space 1}  -11.33{col 49}{space 3}0.000{col 57}{space 4}-1.842071{col 70}{space 3}-1.298562
{txt}{space 10}ydum2 {c |}{col 17}{res}{space 2}-.8590289{col 29}{space 2} .1449823{col 40}{space 1}   -5.93{col 49}{space 3}0.000{col 57}{space 4}-1.143189{col 70}{space 3}-.5748688
{txt}{space 10}ydum3 {c |}{col 17}{res}{space 2}-1.719787{col 29}{space 2} .1428581{col 40}{space 1}  -12.04{col 49}{space 3}0.000{col 57}{space 4}-1.999783{col 70}{space 3} -1.43979
{txt}{space 10}ydum4 {c |}{col 17}{res}{space 2}-2.183969{col 29}{space 2} .1513253{col 40}{space 1}  -14.43{col 49}{space 3}0.000{col 57}{space 4}-2.480561{col 70}{space 3}-1.887377
{txt}{space 10}ydum5 {c |}{col 17}{res}{space 2}-.5762018{col 29}{space 2} .1724869{col 40}{space 1}   -3.34{col 49}{space 3}0.001{col 57}{space 4}-.9142699{col 70}{space 3}-.2381337
{txt}{space 10}_cons {c |}{col 17}{res}{space 2} -3.39665{col 29}{space 2} .2190389{col 40}{space 1}  -15.51{col 49}{space 3}0.000{col 57}{space 4}-3.825959{col 70}{space 3}-2.967342
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}/lnsig2u {c |}{col 17}{res}{space 2}-.0740699{col 29}{space 2} .1198477{col 57}{space 4}-.3089671{col 70}{space 3} .1608274
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        sigma_u {c |}{col 17}{res}{space 2} .9636425{col 29}{space 2} .0577452{col 57}{space 4} .8568576{col 70}{space 3} 1.083735
{txt}            rho {c |}{col 17}{res}{space 2} .2201286{col 29}{space 2} .0205745{col 57}{space 4} .1824532{col 70}{space 3} .2630802
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}256.79{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Democrats only [2]
. xtlogit libvote libntdnpty distmedian demrep aff lagchair lagchairlibntdn ydum1-ydum5 if distN>39 & demrep==1, re
{txt}note: demrep omitted because of collinearity

Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-1748.3639}  
Iteration 1:{space 3}log likelihood = {res: -1523.509}  
Iteration 2:{space 3}log likelihood = {res:-1439.7741}  
Iteration 3:{space 3}log likelihood = {res:-1434.7596}  
Iteration 4:{space 3}log likelihood = {res:-1434.5794}  
Iteration 5:{space 3}log likelihood = {res:-1434.5782}  
Iteration 6:{space 3}log likelihood = {res:-1434.5782}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-1434.5782
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-1407.9136
{txt}tau = {res} 0.2     {txt}log likelihood = {res}-1389.6498
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-1378.1347
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-1372.1825
{txt}tau = {res} 0.5     {txt}log likelihood = {res}-1371.4201
{txt}tau = {res} 0.6     {txt}log likelihood = {res}-1376.7207

{txt}Iteration 0:{space 3}log likelihood = {res:-1371.4468}  
Iteration 1:{space 3}log likelihood = {res:-1357.6523}  
Iteration 2:{space 3}log likelihood = {res:-1357.2731}  
Iteration 3:{space 3}log likelihood = {res:-1357.2726}  
Iteration 4:{space 3}log likelihood = {res:-1357.2726}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     4,907
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       355

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      13.8
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}10{txt}){col 67}={col 70}{res}   436.69
{txt}Log likelihood  = {res}-1357.2726{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        libvote{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}libntdnpty {c |}{col 17}{res}{space 2} 3.889276{col 29}{space 2} .4594355{col 40}{space 1}    8.47{col 49}{space 3}0.000{col 57}{space 4} 2.988799{col 70}{space 3} 4.789754
{txt}{space 5}distmedian {c |}{col 17}{res}{space 2} 3.469339{col 29}{space 2} .4725215{col 40}{space 1}    7.34{col 49}{space 3}0.000{col 57}{space 4} 2.543214{col 70}{space 3} 4.395465
{txt}{space 9}demrep {c |}{col 17}{res}{space 2}        0{col 29}{txt}  (omitted)
{space 12}aff {c |}{col 17}{res}{space 2}-.5184076{col 29}{space 2} .6086439{col 40}{space 1}   -0.85{col 49}{space 3}0.394{col 57}{space 4}-1.711328{col 70}{space 3} .6745126
{txt}{space 7}lagchair {c |}{col 17}{res}{space 2}-.3440064{col 29}{space 2} 1.299878{col 40}{space 1}   -0.26{col 49}{space 3}0.791{col 57}{space 4}-2.891721{col 70}{space 3} 2.203708
{txt}lagchairlibntdn {c |}{col 17}{res}{space 2} .3617887{col 29}{space 2} 1.579908{col 40}{space 1}    0.23{col 49}{space 3}0.819{col 57}{space 4}-2.734774{col 70}{space 3} 3.458351
{txt}{space 10}ydum1 {c |}{col 17}{res}{space 2}-3.109172{col 29}{space 2} .5311132{col 40}{space 1}   -5.85{col 49}{space 3}0.000{col 57}{space 4}-4.150134{col 70}{space 3}-2.068209
{txt}{space 10}ydum2 {c |}{col 17}{res}{space 2}-2.411465{col 29}{space 2} .5328587{col 40}{space 1}   -4.53{col 49}{space 3}0.000{col 57}{space 4}-3.455849{col 70}{space 3}-1.367081
{txt}{space 10}ydum3 {c |}{col 17}{res}{space 2}-2.597455{col 29}{space 2} .5325737{col 40}{space 1}   -4.88{col 49}{space 3}0.000{col 57}{space 4} -3.64128{col 70}{space 3} -1.55363
{txt}{space 10}ydum4 {c |}{col 17}{res}{space 2}-2.398968{col 29}{space 2} .5461508{col 40}{space 1}   -4.39{col 49}{space 3}0.000{col 57}{space 4}-3.469404{col 70}{space 3}-1.328532
{txt}{space 10}ydum5 {c |}{col 17}{res}{space 2}-2.407296{col 29}{space 2} .5449602{col 40}{space 1}   -4.42{col 49}{space 3}0.000{col 57}{space 4}-3.475398{col 70}{space 3}-1.339194
{txt}{space 10}_cons {c |}{col 17}{res}{space 2} .2078526{col 29}{space 2} .6049685{col 40}{space 1}    0.34{col 49}{space 3}0.731{col 57}{space 4}-.9778639{col 70}{space 3} 1.393569
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}/lnsig2u {c |}{col 17}{res}{space 2} .2084091{col 29}{space 2} .1709811{col 57}{space 4}-.1267076{col 70}{space 3} .5435259
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        sigma_u {c |}{col 17}{res}{space 2} 1.109827{col 29}{space 2} .0948798{col 57}{space 4} .9386113{col 70}{space 3} 1.312276
{txt}            rho {c |}{col 17}{res}{space 2} .2724082{col 29}{space 2} .0338888{col 57}{space 4} .2112253{col 70}{space 3} .3435934
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}154.61{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. * Republicans only [3]
. xtlogit libvote libntdnpty distmedian demrep aff lagchair lagchairlibntdn ydum1-ydum5 if distN>39 & demrep==0, re
{txt}note: demrep omitted because of collinearity

Fitting comparison model:

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-2559.7333}  
Iteration 1:{space 3}log likelihood = {res: -1895.737}  
Iteration 2:{space 3}log likelihood = {res:-1823.0881}  
Iteration 3:{space 3}log likelihood = {res:-1818.7501}  
Iteration 4:{space 3}log likelihood = {res:-1818.7343}  
Iteration 5:{space 3}log likelihood = {res:-1818.7343}  
{res}
{txt}Fitting full model:

tau = {res} 0.0     {txt}log likelihood = {res}-1818.7343
{txt}tau = {res} 0.1     {txt}log likelihood = {res}-1799.2054
{txt}tau = {res} 0.2     {txt}log likelihood = {res} -1788.018
{txt}tau = {res} 0.3     {txt}log likelihood = {res}-1783.5105
{txt}tau = {res} 0.4     {txt}log likelihood = {res}-1784.9932

{txt}Iteration 0:{space 3}log likelihood = {res:-1783.5088}  
Iteration 1:{space 3}log likelihood = {res:-1777.4574}  
Iteration 2:{space 3}log likelihood = {res:-1777.4136}  
Iteration 3:{space 3}log likelihood = {res:-1777.4136}  
{res}
{txt}Random-effects logistic regression{col 49}Number of obs{col 67}={col 69}{res}     5,014
{txt}Group variable: {res}nameid{col 49}{txt}Number of groups{col 67}={col 69}{res}       425

{txt}Random effects u_i ~ {res}Gaussian{txt}{col 49}Obs per group:
{col 63}min{col 67}={col 69}{res}         2
{txt}{col 63}avg{col 67}={col 69}{res}      11.8
{txt}{col 63}max{col 67}={col 69}{res}        26

{txt}Integration method: {res}mvaghermite{txt}{col 49}Integration pts.{col 67}={col 70}{res}       12

{txt}{col 49}Wald chi2({res}10{txt}){col 67}={col 70}{res}   819.29
{txt}Log likelihood  = {res}-1777.4136{col 49}{txt}Prob > chi2{col 67}={res}{col 73}0.0000

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}        libvote{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}libntdnpty {c |}{col 17}{res}{space 2} 4.843462{col 29}{space 2} .3975986{col 40}{space 1}   12.18{col 49}{space 3}0.000{col 57}{space 4} 4.064183{col 70}{space 3}  5.62274
{txt}{space 5}distmedian {c |}{col 17}{res}{space 2} 1.069949{col 29}{space 2} .4883319{col 40}{space 1}    2.19{col 49}{space 3}0.028{col 57}{space 4} .1128359{col 70}{space 3} 2.027062
{txt}{space 9}demrep {c |}{col 17}{res}{space 2}        0{col 29}{txt}  (omitted)
{space 12}aff {c |}{col 17}{res}{space 2} 1.024812{col 29}{space 2} .4387455{col 40}{space 1}    2.34{col 49}{space 3}0.020{col 57}{space 4} .1648867{col 70}{space 3} 1.884737
{txt}{space 7}lagchair {c |}{col 17}{res}{space 2}-.1622366{col 29}{space 2} .4080573{col 40}{space 1}   -0.40{col 49}{space 3}0.691{col 57}{space 4}-.9620143{col 70}{space 3}  .637541
{txt}lagchairlibntdn {c |}{col 17}{res}{space 2} .9941363{col 29}{space 2} .9507948{col 40}{space 1}    1.05{col 49}{space 3}0.296{col 57}{space 4}-.8693873{col 70}{space 3}  2.85766
{txt}{space 10}ydum1 {c |}{col 17}{res}{space 2}-.8912108{col 29}{space 2} .1790393{col 40}{space 1}   -4.98{col 49}{space 3}0.000{col 57}{space 4}-1.242121{col 70}{space 3}-.5403002
{txt}{space 10}ydum2 {c |}{col 17}{res}{space 2}-.0827216{col 29}{space 2} .1844631{col 40}{space 1}   -0.45{col 49}{space 3}0.654{col 57}{space 4}-.4442626{col 70}{space 3} .2788193
{txt}{space 10}ydum3 {c |}{col 17}{res}{space 2}-1.655082{col 29}{space 2} .2253407{col 40}{space 1}   -7.34{col 49}{space 3}0.000{col 57}{space 4}-2.096742{col 70}{space 3}-1.213422
{txt}{space 10}ydum4 {c |}{col 17}{res}{space 2}-3.324206{col 29}{space 2} .2627561{col 40}{space 1}  -12.65{col 49}{space 3}0.000{col 57}{space 4}-3.839198{col 70}{space 3}-2.809213
{txt}{space 10}ydum5 {c |}{col 17}{res}{space 2} .2603389{col 29}{space 2} .2098685{col 40}{space 1}    1.24{col 49}{space 3}0.215{col 57}{space 4}-.1509957{col 70}{space 3} .6716735
{txt}{space 10}_cons {c |}{col 17}{res}{space 2}-3.735077{col 29}{space 2} .2862741{col 40}{space 1}  -13.05{col 49}{space 3}0.000{col 57}{space 4}-4.296164{col 70}{space 3} -3.17399
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}/lnsig2u {c |}{col 17}{res}{space 2}-.4601689{col 29}{space 2} .1868957{col 57}{space 4}-.8264777{col 70}{space 3}-.0938601
{txt}{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
        sigma_u {c |}{col 17}{res}{space 2} .7944665{col 29}{space 2} .0742412{col 57}{space 4} .6615043{col 70}{space 3} .9541541
{txt}            rho {c |}{col 17}{res}{space 2} .1609716{col 29}{space 2} .0252421{col 57}{space 4} .1173959{col 70}{space 3}   .21675
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{txt}LR test of rho=0: {help j_chibar##|_new:chibar2(01) = }{res}82.64{col 56}{txt}Prob >= chibar2 = {res}0.000
{txt}
{com}. 
. *S14. Descriptive statistics of variables
. sum libvote libntdnpty libhousedonor libdistdonor libdistdonorcf vallibntdnpty libsmalldonor liblargedonor lagntldonor distmedian ///
> ntlactivist libcfscore demrep aff cookfav pv00 lagood100 lagchair majority nominate clintonlib libcfscore wealth wealth10 ///
> if libvote!=. & distN>39

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}libvote {c |}{res}      9,921    .5426872    .4981996          0          1
{txt}{space 2}libntdnpty {c |}{res}      9,921    .5620487    .3288246   .0437444   .9838624
{txt}libhousedo~r {c |}{res}      7,663    .5632371    .3367757    .027967   .9697121
{txt}libdistdonor {c |}{res}      9,906    .5572072    .3642295          0          1
{txt}libdistdon~f {c |}{res}      8,373   -.0796813     .804166  -1.574892   1.441765
{txt}{hline 13}{c +}{hline 57}
vallibntdn~y {c |}{res}      1,169    .4621778    .3486032   .0730063    .992937
{txt}libsmalldo~r {c |}{res}      7,663    .5763478    .3134882    .059544    .965391
{txt}liblargedo~r {c |}{res}      7,663    .5544387    .3264183    .025918    .977506
{txt}{space 1}lagntldonor {c |}{res}      3,083    .5718763    .3069274   .1043536   .9767937
{txt}{space 2}distmedian {c |}{res}      9,921    .5905851    .1745321   .0353928   .9872414
{txt}{hline 13}{c +}{hline 57}
{space 1}ntlactivist {c |}{res}      7,663    .5577629    .2721072   .0855262   .9432961
{txt}{space 2}libcfscore {c |}{res}      9,111   -.0886775    .8705884     -1.482      1.504
{txt}{space 6}demrep {c |}{res}      9,921    .4946074    .4999961          0          1
{txt}{space 9}aff {c |}{res}      9,921    .5456138    .1634343   .2366705    .868775
{txt}{space 5}cookfav {c |}{res}      9,921    10.50953    10.66572        -22         44
{txt}{hline 13}{c +}{hline 57}
{space 8}pv00 {c |}{res}      9,921    60.63851     10.9009   23.70553   97.06084
{txt}{space 3}lagood100 {c |}{res}      9,608    .6439886    .2003532          0          1
{txt}{space 4}lagchair {c |}{res}      9,921    .0410241    .1983559          0          1
{txt}{space 4}majority {c |}{res}      9,921    .5589154    .4965419          0          1
{txt}{space 4}nominate {c |}{res}      9,921   -.0463833    .4370786      -.913       .685
{txt}{hline 13}{c +}{hline 57}
{space 2}clintonlib {c |}{res}      9,921    .6173773    .4860518          0          1
{txt}{space 2}libcfscore {c |}{res}      9,111   -.0886775    .8705884     -1.482      1.504
{txt}{space 6}wealth {c |}{res}      9,906    6.084372    29.44694    -24.367   500.6245
{txt}{space 4}wealth10 {c |}{res}      9,884    .1004654    .3006347          0          1
{txt}
{com}. sum libdistdonor if libvote!=. & distN>39 & distdonorN>39

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
libdistdonor {c |}{res}        129    .5513636    .3706416          0          1
{txt}
{com}. sum informdistmed if libvote!=. & informedN>39

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
informdist~d {c |}{res}      3,996    .5911397    .1840063   .0714572          1
{txt}
{com}. sum distpartisan if libvote!=. & partisanN>39

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
distpartisan {c |}{res}      6,735    .5850176    .2799115          0          1
{txt}
{com}. sum distmedian_mrp if libvote!=.

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
distmedian~p {c |}{res}      9,441    .5718066    .1532078    .158427   .9186621
{txt}
{com}. sum yeavote partyposyea if yeavote!=. & distN>39

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}yeavote {c |}{res}      9,921    .5957061    .4907796          0          1
{txt}{space 1}partyposyea {c |}{res}      9,921    .5826026    .4931545          0          1
{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/kenmiller/Desktop/OutofDistrictDonors.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}12 Mar 2021, 11:55:11
{txt}{.-}
{smcl}
{txt}{sf}{ul off}